{"id":22177460,"url":"https://github.com/r3code/php-du-notifier","last_synced_at":"2025-10-23T20:42:09.078Z","repository":{"id":150686187,"uuid":"88261389","full_name":"r3code/php-du-notifier","owner":"r3code","description":"Small PHP script to notify an admin by email of how much space allocated by web sites on shared hosting","archived":false,"fork":false,"pushed_at":"2017-04-14T13:38:10.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T21:35:58.547Z","etag":null,"topics":["cron-script","cronjob","disk-space","disk-usage","hosting","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r3code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-14T11:14:16.000Z","updated_at":"2020-03-03T19:19:12.000Z","dependencies_parsed_at":"2023-04-10T01:32:14.294Z","dependency_job_id":null,"html_url":"https://github.com/r3code/php-du-notifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/r3code/php-du-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3code%2Fphp-du-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3code%2Fphp-du-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3code%2Fphp-du-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3code%2Fphp-du-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r3code","download_url":"https://codeload.github.com/r3code/php-du-notifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3code%2Fphp-du-notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280688058,"owners_count":26373808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cron-script","cronjob","disk-space","disk-usage","hosting","php"],"created_at":"2024-12-02T08:28:26.495Z","updated_at":"2025-10-23T20:42:09.046Z","avatar_url":"https://github.com/r3code.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-du-notifier\nPHP script to notify an admin by email of how much space allocated by web sites on shared Linux hosting.\n\n## Install\n\nDownload and copy files to your shared hosting. \n\n## Config\nEdit `config.json` before use.  \nConfig fields are:\n\n```\nrootDir - absoulte path to your account on web-hosting,  \ntotalDiskQuotaMb - total accoun space limit in megabytes,  \nmaxSiteCount - sites count used to calculate per site space limit, typycally allowed by tariff,  \nreportInfo - contains report config,  \n    mailFrom - e-mail addres to use as from header (e.g. status@example.org),       \n    name - title for the report,       \n    type - (html|plain) type of generated report,       \nsites - (array) of site info, with structure:    \n    domain - domain name,       \n    path - path to site dir from `rootDir`\n```     \n    \n\n### Mail report every moth\nAllow to execute `dunotifier.php`, e.g. `chmod +x dunotifier.php` to allow run from cron.\nConfigure cron task to run `/path-to-scripts/dunotifier.php -m mailme@example.org` for example once a month.\nIt will send you a letter with a report once a month.\n\n### Instant report\nOpen your web site at http://site.com/path-to-scripts/dunotifier.php to see the html report.\nSet password for this folder to protect it from undesired access.\n\n## Email Report Example\n\nThe letter in Gmail interface.\n\n![DuNotifier E-mail report](du-notifier-email-report.png)\n\n## Online HTML Report Example\n\nSee below.\n\n![DuNotifier HTML report](du-notifier-html-report.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3code%2Fphp-du-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr3code%2Fphp-du-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3code%2Fphp-du-notifier/lists"}