{"id":19107792,"url":"https://github.com/alleyinteractive/wp-to-psr-4","last_synced_at":"2025-04-30T18:51:11.437Z","repository":{"id":208289403,"uuid":"721219969","full_name":"alleyinteractive/wp-to-psr-4","owner":"alleyinteractive","description":"Migrate a WordPress Codebase to PSR-4","archived":false,"fork":false,"pushed_at":"2024-09-04T19:29:02.000Z","size":14977,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":20,"default_branch":"develop","last_synced_at":"2024-09-06T03:39:20.629Z","etag":null,"topics":["coding-standards","psr-4","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","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":"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":"2023-11-20T15:48:17.000Z","updated_at":"2024-09-04T19:28:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"32f9980e-b423-4ab5-a9d3-c6f1249db164","html_url":"https://github.com/alleyinteractive/wp-to-psr-4","commit_stats":null,"previous_names":["alleyinteractive/wp-to-psr-4"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwp-to-psr-4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwp-to-psr-4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwp-to-psr-4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwp-to-psr-4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alleyinteractive","download_url":"https://codeload.github.com/alleyinteractive/wp-to-psr-4/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223783042,"owners_count":17201915,"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":["coding-standards","psr-4","wordpress"],"created_at":"2024-11-09T04:14:00.452Z","updated_at":"2024-11-09T04:14:01.002Z","avatar_url":"https://github.com/alleyinteractive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-to-psr-4\n\nMigrate a WordPress-style code base to PSR-4 file structure. For example:\n\n```\nsrc/example/path/to/class-file.php -\u003e src/Example/Path/To/ClassFile.php\nsrc/example/trait-ReusableTrait.php -\u003e src/Example/ReusableTrait.php\nsrc/example/interface-ReusableInterface.php -\u003e src/Example/ReusableInterface.php\n```\n\n## Installation\n\nYou can download the latest phar from the [releases\npage](https://github.com/alleyinteractive/wp-to-psr-4/releases) using the\nfollowing example:\n\n```bash\nwget https://github.com/alleyinteractive/wp-to-psr-4/releases/download/v1.0.3/wp-to-psr4.phar\nchmod +x wp-to-psr4.phar\nmv wp-to-psr4.phar /usr/local/bin/wp-to-psr4\n```\n\nOr you can install it globally using Composer:\n\n```bash\ncomposer global require alleyinteractive/wp-to-psr-4\n```\n\n## Usage\n\n```\nwp-to-psr4 path/to/convert\n```\n\n### Options\n\n```\n--dry-run\n```\n\nPrints the changes that would be made without actually making them.\n\n```\n--exclude\n```\n\nExclude a directory/file from being converted. This option can be used multiple\ntimes and accepts glob patterns.\n\n```\n--no-git\n```\n\nDo not run `git mv` on the files. Will only make changes to the file system.\n\n## Credits\n\nThis project is actively maintained by [Alley\nInteractive](https://github.com/alleyinteractive). Like what you see? [Come work\nwith us](https://alley.com/careers/).\n\n- [Sean Fisher](https://github.com/srtfisher)\n- [All Contributors](../../contributors)\n\n## License\n\nThe GNU General Public License (GPL) license. Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falleyinteractive%2Fwp-to-psr-4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falleyinteractive%2Fwp-to-psr-4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falleyinteractive%2Fwp-to-psr-4/lists"}