{"id":20741621,"url":"https://github.com/attitude/index-php","last_synced_at":"2026-04-16T06:02:53.977Z","repository":{"id":138279744,"uuid":"302266642","full_name":"attitude/index-php","owner":"attitude","description":"Walks tree and generates index.php [devtool]","archived":false,"fork":false,"pushed_at":"2024-03-29T18:43:10.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T18:59:11.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/attitude.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-10-08T07:41:28.000Z","updated_at":"2024-03-29T18:43:14.000Z","dependencies_parsed_at":"2024-03-29T19:40:16.225Z","dependency_job_id":"3c3fb5cd-7550-433a-95a0-3ce970b03d7b","html_url":"https://github.com/attitude/index-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/attitude/index-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attitude%2Findex-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attitude%2Findex-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attitude%2Findex-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attitude%2Findex-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/attitude","download_url":"https://codeload.github.com/attitude/index-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attitude%2Findex-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31873607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":[],"created_at":"2024-11-17T06:42:28.047Z","updated_at":"2026-04-16T06:02:53.962Z","avatar_url":"https://github.com/attitude.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# index.php [devtool]\n\nWalks the directory tree and generates `index.php` files for deeply nested file structures:\n\n```\n(root)\n├- dir-1\n|  ├- dir-1-1\n|  |  ├- file-1.php\n|  |  ├- file-2.php\n|  |  ├- ...\n|  |  ├- file-n.php\n|  |  └\u003e index.php\n|  ├- dir-1-2\n|  |  └\u003e index.php\n|  ├- ...\n|  ├- dir-1-n\n|  |  └\u003e index.php\n|  ├- file-1.php\n|  ├- file-2.php\n|  ├- ...\n|  ├- file-n.php\n|  └\u003e index.php\n├- dir-2\n|  └\u003e index.php\n├- ...\n├- dir-n\n|  └\u003e index.php\n└\u003e index.php\n```\n\nAll the `*.php` files of the directory are required within its `index.php` as well as the `index.php`s of the subdirectories directories of the directory and so on up to the root.\n\n## Using via command line\n\nOnly `-path` parameter is required. Use `-dry on` to test results. Turn `-backup off` as soon as you don't need backups and nothing gets lost/overwritten.\n\n```\n$ /path/to/index-php/run.sh -path \"/to/walk\"\n```\n\nShorthand | Argument   | Description                       | Default\n----------|------------|-----------------------------------|--------\n-h        | -help      | Shows help.                       | –\n-p        | -path      | Path to directory to process.     | -\n-b        | -backup\t   | Create backups of index files.    | `true`\n-d        | -dry       | Dry run without applying changes. | `false`\n-r        | -recursive | Walk directories recursively.     | `true`\n-e        | -exclude   | Regex pattern to exclude files.   | –\n-i        | -include   | Regex pattern to include files.   | –\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fattitude%2Findex-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fattitude%2Findex-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fattitude%2Findex-php/lists"}