{"id":15065476,"url":"https://github.com/alleyinteractive/wordpress-autoloader","last_synced_at":"2025-04-10T16:42:44.104Z","repository":{"id":40402269,"uuid":"454550018","full_name":"alleyinteractive/wordpress-autoloader","owner":"alleyinteractive","description":"WordPress autoloader that follows WordPress coding standards","archived":false,"fork":false,"pushed_at":"2025-01-27T13:52:58.000Z","size":84,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":28,"default_branch":"main","last_synced_at":"2025-03-19T08:48:51.819Z","etag":null,"topics":["wordpress"],"latest_commit_sha":null,"homepage":"","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/alleyinteractive.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-02-01T21:02:09.000Z","updated_at":"2025-01-27T13:53:01.000Z","dependencies_parsed_at":"2024-04-29T15:01:56.345Z","dependency_job_id":"f98c819c-71eb-4242-aeed-702f2aa28c8a","html_url":"https://github.com/alleyinteractive/wordpress-autoloader","commit_stats":{"total_commits":59,"total_committers":2,"mean_commits":29.5,"dds":"0.11864406779661019","last_synced_commit":"d18eac60f537782f50a63108b2dc477b36550479"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwordpress-autoloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwordpress-autoloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwordpress-autoloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwordpress-autoloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alleyinteractive","download_url":"https://codeload.github.com/alleyinteractive/wordpress-autoloader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252728,"owners_count":21072703,"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","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":["wordpress"],"created_at":"2024-09-25T00:39:06.041Z","updated_at":"2025-04-10T16:42:44.080Z","avatar_url":"https://github.com/alleyinteractive.png","language":"PHP","readme":"# WordPress Autoloader\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/alleyinteractive/wordpress-autoloader.svg?style=flat-square)](https://packagist.org/packages/alleyinteractive/wordpress-autoloader)\n[![Tests](https://github.com/alleyinteractive/wordpress-autoloader/actions/workflows/tests.yml/badge.svg)](https://github.com/alleyinteractive/wordpress-autoloader/actions/workflows/tests.yml)\n\nA PHP Autoloader that supports the [WordPress Coding\nStandards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/). For example, a folder that looks like this would be autoloaded as:\n\n```\nsrc/class-example-class.php -\u003e Root_Namespace\\Example_Class\nsrc/trait-reusable-feature.php -\u003e Root_Namesace\\Reusable_Feature\nsrc/feature/class-example-feature.php -\u003e Root_Namespace\\Feature\\Example_Feature\n```\n\nSupports `class`, `trait`, `interface`, and `enum` files and any level of\nnamespaces.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require alleyinteractive/wordpress-autoloader\n```\n\n## Usage\n\n```php\nAlley_Interactive\\Autoloader\\Autoloader::generate(\n\t'Plugin\\\\Namespace',\n\t__DIR__ . '/src',\n)-\u003eregister();\n\n// Or register the autoloader manually.\nspl_autoload_register(\n\tAlley_Interactive\\Autoloader\\Autoloader::generate(\n\t\t'Plugin\\\\Namespace',\n\t\t__DIR__ . '/src',\n\t)\n);\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falleyinteractive%2Fwordpress-autoloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falleyinteractive%2Fwordpress-autoloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falleyinteractive%2Fwordpress-autoloader/lists"}