{"id":20406657,"url":"https://github.com/xwp/io-php-wp-autoload","last_synced_at":"2026-01-29T22:04:21.181Z","repository":{"id":57680232,"uuid":"493250402","full_name":"xwp/io-php-wp-autoload","owner":"xwp","description":"[READ ONLY]","archived":false,"fork":false,"pushed_at":"2023-11-27T14:42:13.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":29,"default_branch":"main","last_synced_at":"2025-07-19T04:55:50.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/xwp/io","language":"PHP","has_issues":false,"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/xwp.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,"zenodo":null}},"created_at":"2022-05-17T12:53:25.000Z","updated_at":"2023-10-11T10:41:20.000Z","dependencies_parsed_at":"2025-04-12T15:18:15.049Z","dependency_job_id":null,"html_url":"https://github.com/xwp/io-php-wp-autoload","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"02c2aab63168b53b7ed19172142a5a718d5e906a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/xwp/io-php-wp-autoload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fio-php-wp-autoload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fio-php-wp-autoload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fio-php-wp-autoload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fio-php-wp-autoload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xwp","download_url":"https://codeload.github.com/xwp/io-php-wp-autoload/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fio-php-wp-autoload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28886882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"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":[],"created_at":"2024-11-15T05:18:39.105Z","updated_at":"2026-01-29T22:04:21.154Z","avatar_url":"https://github.com/xwp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## WP Autoload\n\nPHP autoloader for projects with [file naming conventions from WordPress coding standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions).\n\nAttempts to resolve classes, interfaces and traits.\n\n## Usage\n\nAdd this library as a dependency for your project:\n\n\tcomposer require xwp/wp-autoload\n\nRegister the namespace mapping to folders containing your code:\n\n```php\n$autoload = new XWP\\IO\\WP_Autoload\\Autoload();\n\n$autoload-\u003eadd(\n\t__DIR__ . '/php',\n\t'YourVendor\\Project'\n);\n\n$autoload-\u003eadd(\n\t__DIR__ . '/lib/rest-api',\n\t'Another_Vendor\\Rest_Api'\n);\n\n// Now instantiate the class without any includes.\n$api = new YourVendor\\Project\\Module_One\\Api();\n```\n\nFor example, a request for `YourVendor\\Project\\Module_One\\Api` will attempt to include the following files:\n\n- `.../php/module-one/class-api.php`\n- `.../php/module-one/interface-api.php`\n- `.../php/module-one/trait-api.php`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwp%2Fio-php-wp-autoload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxwp%2Fio-php-wp-autoload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwp%2Fio-php-wp-autoload/lists"}