{"id":15764677,"url":"https://github.com/ctf0/vscode-php-class-generator","last_synced_at":"2026-03-04T00:39:11.380Z","repository":{"id":63913001,"uuid":"479984560","full_name":"ctf0/vscode-php-class-generator","owner":"ctf0","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-25T11:29:14.000Z","size":131,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T12:19:01.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctf0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"ctf0"}},"created_at":"2022-04-10T10:32:43.000Z","updated_at":"2024-08-25T11:29:17.000Z","dependencies_parsed_at":"2024-08-25T12:36:04.436Z","dependency_job_id":null,"html_url":"https://github.com/ctf0/vscode-php-class-generator","commit_stats":{"total_commits":49,"total_committers":4,"mean_commits":12.25,"dds":0.5102040816326531,"last_synced_commit":"2186c884886c5063319a13e237f3683cdd833c5f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-php-class-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-php-class-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-php-class-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-php-class-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctf0","download_url":"https://codeload.github.com/ctf0/vscode-php-class-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223849432,"owners_count":17213640,"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":[],"created_at":"2024-10-04T12:04:25.080Z","updated_at":"2026-03-04T00:39:06.334Z","avatar_url":"https://github.com/ctf0.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ctf0"],"categories":[],"sub_categories":[],"readme":"# Php Class Generator\n\nbased on https://marketplace.visualstudio.com/items?itemName=damianbal.vs-phpclassgen\n\n- remove generate namespace command\n- remove vendor config\n- add make test command\n\n\u003cbr\u003e\n\n## Test File Creation\n\n```plain\n/\n└── Modules\n    └── Calculation\n        ├── Tests\n        └── Services\n            └── Taxes\n                ├── WorkerTax.php\n                └── EmployeeTax.php \u003c- create test for this file\n```\n\n1. the test name will be the current file `className + Test` ex.`EmployeeTaxTest`\n2. tests are created in the **nearest tests** directory to the original file ex.`Modules/Calculation/Tests/...`,\n  or if not the cmnd will keep traversing up until it finds a directory of `tests` ex.`root/tests`\n3. the test file will be created with the original class hierarchy ex.`.../Tests/{TestType}/Services/Taxes/EmployeeTaxTest.php`\n4. if file already exists it will be opened instead\n5. for the `Go To Test` codelens to show up, the class test file must be `className + Test` ex.`EmployeeTaxTest`\n\n\u003e PS 🔺\n\nthe navigation between the class to its test \u0026 vice-versa doesnt follow anything other than the name of the class to connect the dots,\nwhich means if you have multiple classes with the same name in both ways `class \u0026 test` you might get directed to the wrong file,\nso to use this feature the names have to be as unique as possible,\n\nhowever, the codelens now have the support to\n  - showing the file path on hover\n  - for multi files you will get a QuickPick to choose from\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Fvscode-php-class-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctf0%2Fvscode-php-class-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Fvscode-php-class-generator/lists"}