{"id":19240914,"url":"https://github.com/webdevcave/directory-crawler-php","last_synced_at":"2026-02-12T15:03:08.470Z","repository":{"id":245042077,"uuid":"817050761","full_name":"WebdevCave/directory-crawler-php","owner":"WebdevCave","description":"Directory Crawler PHP is a simple PHP library for recursively crawling through directories and listing files and directories.","archived":false,"fork":false,"pushed_at":"2024-11-14T18:34:12.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-27T16:58:16.451Z","etag":null,"topics":["crawler","crawling","directory","path","php","php-library"],"latest_commit_sha":null,"homepage":"","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/WebdevCave.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,"zenodo":null}},"created_at":"2024-06-18T23:28:08.000Z","updated_at":"2024-11-14T18:34:15.000Z","dependencies_parsed_at":"2025-12-30T02:09:43.358Z","dependency_job_id":null,"html_url":"https://github.com/WebdevCave/directory-crawler-php","commit_stats":null,"previous_names":["webdevcave/directory-crawler-php"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/WebdevCave/directory-crawler-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebdevCave%2Fdirectory-crawler-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebdevCave%2Fdirectory-crawler-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebdevCave%2Fdirectory-crawler-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebdevCave%2Fdirectory-crawler-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebdevCave","download_url":"https://codeload.github.com/WebdevCave/directory-crawler-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebdevCave%2Fdirectory-crawler-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29369381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["crawler","crawling","directory","path","php","php-library"],"created_at":"2024-11-09T17:09:27.187Z","updated_at":"2026-02-12T15:03:08.452Z","avatar_url":"https://github.com/WebdevCave.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Directory Crawler\n\n![StyleCi](https://github.styleci.io/repos/817050761/shield)\n[![Latest Stable Version](https://poser.pugx.org/webdevcave/directory-crawler/v/stable?format=flat-square)](https://packagist.org/packages/webdevcave/directory-crawler)\n[![Latest Unstable Version](https://poser.pugx.org/webdevcave/directory-crawler/v/unstable?format=flat-square)](https://packagist.org/packages/webdevcave/directory-crawler)\n[![Total Downloads](https://poser.pugx.org/webdevcave/directory-crawler/downloads?format=flat-square)](https://packagist.org/packages/webdevcave/directory-crawler)\n[![License](https://poser.pugx.org/webdevcave/directory-crawler/license?format=flat-square)](https://packagist.org/packages/webdevcave/directory-crawler)\n\n\nDirectory Crawler PHP is a simple PHP library for recursively crawling through directories and listing files and\ndirectories.\n\n## Features\n\n- Recursively crawls through a specified directory.\n- Retrieves a list of files and directories within the specified directory.\n- Retrieves a list of classes inside the repository (PSR4 structured repositories).\n\n## Installation\n\nYou can install the package via Composer:\n\n```bash\ncomposer require webdevcave/directory-crawler-php\n```\n\n## Usage\n\n```php\n\u003c?php\n\nrequire_once 'vendor/autoload.php';\n\nuse WebdevCave\\DirectoryCrawler\\Crawler;\n\n// Set the directory path to crawl\n$path = '/path/to/directory';\n\n$crawler = new Crawler($path);\n\n// Get all files and directories\n$contents = $crawler-\u003econtents();\n\n// Get all files\n$files = $crawler-\u003efiles();\n\n// Get all directories\n$directories = $crawler-\u003edirectories();\n\n// List classes inside the directories\n$namespace = 'My\\\\Project\\\\';\n$enforce = false; //Faster\n//$enforce = true; //Reliable but slower. May cause performance issues, depending on the number of occurrences.\n$classes = $crawler-\u003eclasses($namespace, $enforce);\n\nprint_r(compact('path', 'contents', 'files', 'directories', 'classes')); //Show results\n```\n\n## Contributing\n\nContributions are welcome! Fork the repository, make your changes, and submit a pull request. Please ensure to write\ntests for any new functionality or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevcave%2Fdirectory-crawler-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevcave%2Fdirectory-crawler-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevcave%2Fdirectory-crawler-php/lists"}