{"id":15068527,"url":"https://github.com/varunsridharan/php-classmap-generator","last_synced_at":"2025-09-13T08:11:54.352Z","repository":{"id":62543812,"uuid":"212230211","full_name":"varunsridharan/php-classmap-generator","owner":"varunsridharan","description":"Generates PHP Class-maps and works with PHP-Autoloader ","archived":false,"fork":false,"pushed_at":"2021-04-11T03:50:16.000Z","size":113,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-17T22:29:40.290Z","etag":null,"topics":["class-map","composer-autoloader","composer-package","php","php-autoload","php-class-autoloader","php-class-map","php-classes","php-classmap-generator","php-library","php-libray","vsp-libs"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/varunsridharan/php-classmap-generator","language":"PHP","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/varunsridharan.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}},"created_at":"2019-10-02T01:10:24.000Z","updated_at":"2024-10-08T14:33:29.000Z","dependencies_parsed_at":"2022-11-02T21:30:33.900Z","dependency_job_id":null,"html_url":"https://github.com/varunsridharan/php-classmap-generator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/varunsridharan/php-classmap-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Fphp-classmap-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Fphp-classmap-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Fphp-classmap-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Fphp-classmap-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/varunsridharan","download_url":"https://codeload.github.com/varunsridharan/php-classmap-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Fphp-classmap-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274935979,"owners_count":25376836,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["class-map","composer-autoloader","composer-package","php","php-autoload","php-class-autoloader","php-class-map","php-classes","php-classmap-generator","php-library","php-libray","vsp-libs"],"created_at":"2024-09-25T01:37:58.569Z","updated_at":"2025-09-13T08:11:54.327Z","avatar_url":"https://github.com/varunsridharan.png","language":"PHP","readme":"# PHP Classmap Generator\nSimple \u0026 Lightweight PHP Classmap Generator\n\n[![Latest Stable Version][latest-stable-version-img]][latest-stable-version-link]\n[![Latest Unstable Version][latest-Unstable-version-img]][latest-Unstable-version-link]\n[![Total Downloads][total-downloads-img]][total-downloads-link]\n[![License][license-img]][license-link]\n[![composer.lock available][composerlock-img]][composerlock-link]\n\n## Installation\nThe preferred way to install this extension is through [Composer][composer].\n\nTo install **PHP_Classmap_Generator library**, simply:\n\n    $ composer require varunsridharan/php-classmap-generator\n\nThe previous command will only install the necessary files, if you prefer to **download the entire source code** you can use:\n\n    $ composer require varunsridharan/php-classmap-generator --prefer-source\n\nYou can also **clone the complete repository** with Git:\n\n    $ git clone https://github.com/varunsridharan/php-classmap-generator.git\n\nOr **install it manually**:\n\n[Download PHP_Classmap_Generator.zip][downloadzip]:\n\n    $ wget https://github.com/varunsridharan/php-classmap-generator/archive/master.zip\n\n## Usage\n### Config Arguments\n| Key | Description |\n| --- | ----------- |\n| namespace | Which name space to search for. leave empty to get all classes |\n| source | string / array of places to search for php classes |\n| output | Location \u0026 File type to save classmap data |\n| excluded | Namespace / File Paths to exclude |\n| fullpath | set true to provide full path |\n\n### CMD Line\n```\n/**\n * Arguments Order.\n * 1. PHP Class Source\n * 2. PHP Classmap File Output\n * 3. Namespace (Leave Empty To Get All)\n * 4. exclude_namespace\n * 5. exclude_path\n * 6. fullpath\n */\ncomposer classmap-generator \"your-path-to-php-class\" \"class-map-output/files.php\"\n```\n\n## Sample Outputs\n\n### PHP\n```php\n\u003c?php\n/**\n * Last Updated: Wed 02-Oct-2019 / 10:23:12:am\n * Total Class:  3\n * Namespace: \n */\n\nreturn array (\n  'Namespace\\\\Class1' =\u003e 'your-path/class1.php',\n  'Namespace\\\\Deep1\\\\Class2' =\u003e 'your-path/deep1/class2.php',\n  'Simple_Class' =\u003e 'simple_class.php',\n);\n```\n\n### JSON\n```json\n{\n  \"Namespace\\\\Class1\"      : \"your-path/class1.php\",\n  \"Namespace\\\\Deep1\\\\Class2\" : \"your-path/deep1/class2.php\",\n  \"Simple_Class\" : \"simple_class.php\"\n}\n```\n\n\n---\n\n\u003c!-- START common-footer.mustache  --\u003e\n## 📝 Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n[Checkout CHANGELOG.md](https://github.com/varunsridharan/php-classmap-generator/blob/main/CHANGELOG.md)\n\n\n## 🤝 Contributing\nIf you would like to help, please take a look at the list of [issues](https://github.com/varunsridharan/php-classmap-generator/issues/).\n\n\n## 📜  License \u0026 Conduct\n- [**GNU General Public License v3.0**](https://github.com/varunsridharan/php-classmap-generator/blob/main/LICENSE) © [Varun Sridharan](website)\n- [Code of Conduct](https://github.com/varunsridharan/.github/blob/main/CODE_OF_CONDUCT.md)\n\n\n## 📣 Feedback\n- ⭐ This repository if this project helped you! :wink:\n- Create An [🔧 Issue](https://github.com/varunsridharan/php-classmap-generator/issues/) if you need help / found a bug\n\n\n## 💰 Sponsor\n[I][twitter] fell in love with open-source in 2013 and there has been no looking back since! You can read more about me [here][website].\nIf you, or your company, use any of my projects or like what I’m doing, kindly consider backing me. I'm in this for the long run.\n\n- ☕ How about we get to know each other over coffee? Buy me a cup for just [**$9.99**][buymeacoffee]\n- ☕️☕️ How about buying me just 2 cups of coffee each month? You can do that for as little as [**$9.99**][buymeacoffee]\n- 🔰         We love bettering open-source projects. Support 1-hour of open-source maintenance for [**$24.99 one-time?**][paypal]\n- 🚀         Love open-source tools? Me too! How about supporting one hour of open-source development for just [**$49.99 one-time ?**][paypal]\n\n\u003c!-- Personl Links --\u003e\n[paypal]: https://sva.onl/paypal\n[buymeacoffee]: https://sva.onl/buymeacoffee\n[twitter]: https://sva.onl/twitter/\n[website]: https://sva.onl/website/\n\n\n## Connect \u0026 Say 👋\n- **Follow** me on [👨‍💻 Github][github] and stay updated on free and open-source software\n- **Follow** me on [🐦 Twitter][twitter] to get updates on my latest open source projects\n- **Message** me on [📠 Telegram][telegram]\n- **Follow** my pet on [Instagram][sofythelabrador] for some _dog-tastic_ updates!\n\n\u003c!-- Personl Links --\u003e\n[sofythelabrador]: https://www.instagram.com/sofythelabrador/\n[github]: https://sva.onl/github/\n[twitter]: https://sva.onl/twitter/\n[telegram]: https://sva.onl/telegram/\n\n\n---\n\n\u003cp align=\"center\"\u003e\n\u003ci\u003eBuilt With ♥ By \u003ca href=\"https://sva.onl/twitter\"  target=\"_blank\" rel=\"noopener noreferrer\"\u003eVarun Sridharan\u003c/a\u003e \u003ca href=\"https://en.wikipedia.org/wiki/India\"\u003e\n   \u003cimg src=\"https://cdn.svarun.dev/flag-india.jpg\" width=\"20px\"/\u003e\u003c/a\u003e \u003c/i\u003e \u003cbr/\u003e\u003cbr/\u003e\n   \u003cimg src=\"https://cdn.svarun.dev/codeispoetry.png\"/\u003e\n\u003c/p\u003e\n\n---\n\n\n\u003c!-- END common-footer.mustache  --\u003e\n\n\n\n\n[composer]: http://getcomposer.org/download/\n[downloadzip]:https://github.com/varunsridharan/php-classmap-generator/archive/master.zip\n\n[latest-stable-version-img]: https://poser.pugx.org/varunsridharan/php-classmap-generator/version\n[latest-Unstable-version-img]: https://poser.pugx.org/varunsridharan/php-classmap-generator/v/unstable\n[total-downloads-img]: https://poser.pugx.org/varunsridharan/php-classmap-generator/downloads\n[Latest-Unstable-version-img]: https://poser.pugx.org/varunsridharan/php-classmap-generator/v/unstable\n[license-img]: https://poser.pugx.org/varunsridharan/php-classmap-generator/license\n[composerlock-img]: https://poser.pugx.org/varunsridharan/php-classmap-generator/composerlock\n\n[latest-stable-version-link]: https://packagist.org/packages/varunsridharan/php-classmap-generator\n[latest-Unstable-version-link]: https://packagist.org/packages/varunsridharan/php-classmap-generator\n[total-downloads-link]: https://packagist.org/packages/varunsridharan/php-classmap-generator\n[Latest-Unstable-Version-link]: https://packagist.org/packages/varunsridharan/php-classmap-generator\n[license-link]: https://packagist.org/packages/varunsridharan/php-classmap-generator\n[composerlock-link]: https://packagist.org/packages/varunsridharan/php-classmap-generator\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarunsridharan%2Fphp-classmap-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarunsridharan%2Fphp-classmap-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarunsridharan%2Fphp-classmap-generator/lists"}