{"id":15022105,"url":"https://github.com/alleyinteractive/composer-wordpress-autoloader","last_synced_at":"2026-04-01T22:04:56.045Z","repository":{"id":39762616,"uuid":"454639406","full_name":"alleyinteractive/composer-wordpress-autoloader","owner":"alleyinteractive","description":"Composer Autoloader that supports the WordPress Coding Standards","archived":false,"fork":false,"pushed_at":"2026-01-12T05:09:32.000Z","size":106,"stargazers_count":13,"open_issues_count":4,"forks_count":3,"subscribers_count":28,"default_branch":"main","last_synced_at":"2026-03-28T00:37:48.546Z","etag":null,"topics":["composer","php","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-02-02T04:13:18.000Z","updated_at":"2026-02-12T09:24:04.000Z","dependencies_parsed_at":"2023-12-11T03:07:02.148Z","dependency_job_id":"20c49e00-b694-4b21-b430-30a8ea3c9cf5","html_url":"https://github.com/alleyinteractive/composer-wordpress-autoloader","commit_stats":{"total_commits":81,"total_committers":2,"mean_commits":40.5,"dds":"0.13580246913580252","last_synced_commit":"42ac608e5d0574591a9ce99d6d17e647232f948b"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/alleyinteractive/composer-wordpress-autoloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fcomposer-wordpress-autoloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fcomposer-wordpress-autoloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fcomposer-wordpress-autoloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fcomposer-wordpress-autoloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alleyinteractive","download_url":"https://codeload.github.com/alleyinteractive/composer-wordpress-autoloader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fcomposer-wordpress-autoloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"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":["composer","php","wordpress"],"created_at":"2024-09-24T19:57:27.882Z","updated_at":"2026-04-01T22:04:55.593Z","avatar_url":"https://github.com/alleyinteractive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Composer WordPress Autoloader\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/alleyinteractive/composer-wordpress-autoloader.svg?style=flat-square)](https://packagist.org/packages/alleyinteractive/composer-wordpress-autoloader)\n[![Tests](https://github.com/alleyinteractive/composer-wordpress-autoloader/actions/workflows/tests.yml/badge.svg)](https://github.com/alleyinteractive/composer-wordpress-autoloader/actions/workflows/tests.yml)\n\nAutoload WordPress files configured via Composer that support the [WordPress\nCoding\nStandards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/)\nusing\n[alleyinteractive/wordpress-autoloader](https://github.com/alleyinteractive/wordpress-autoloader).\nWill load the autoloaded classes defined in your package and all autoloaded\nclasses in your dependencies.\n\n## Installation\n\nYou can install the package via Composer:\n\n```bash\ncomposer require alleyinteractive/composer-wordpress-autoloader\n```\n\n## Usage\n\n```json\n{\n  \"extra\": {\n    \"wordpress-autoloader\": {\n      \"autoload\": {\n        \"My_Plugin_Namespace\\\\\": \"src/\",\n      },\n      \"autoload-dev\": {\n        \"My_Plugin_Namespace\\\\Tests\\\\\": \"tests/\",\n      }\n    }\n  }\n}\n```\n\nOnce added, you can load `vendor/autoload.php` as normal and the autoloader will\nhandle the rest. If that doesn't work, see [Automatically Injecting WordPress\nAutoloader](#automatically-injecting-wordpress-autoloader).\n\n### Automatically Injecting WordPress Autoloader\n\nBy default Composer WordPress Autoloader will automatically load the WordPress\nautoloader. This is done by adding `src/autoload.php` as an autoloaded file to\nComposer. However, this may not always work under some circumstances including\nsymlinks. When necessary, you can opt to inject the\n`vendor/wordpress-autoload.php` file into your `vendor/autoload.php` file. This\nis disabled by default and be enabled by setting `inject` to `true` in your\n`composer.json`.\n\n```json\n{\n  \"extra\": {\n    \"wordpress-autoloader\": {\n      \"inject\": true\n    }\n  }\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falleyinteractive%2Fcomposer-wordpress-autoloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falleyinteractive%2Fcomposer-wordpress-autoloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falleyinteractive%2Fcomposer-wordpress-autoloader/lists"}