{"id":17332549,"url":"https://github.com/profclems/postman-collection-generator","last_synced_at":"2025-08-20T12:31:41.915Z","repository":{"id":43886403,"uuid":"273125392","full_name":"profclems/postman-collection-generator","owner":"profclems","description":"A package that automatically generates postman collection from laravel api/web routes","archived":false,"fork":false,"pushed_at":"2021-07-27T09:42:04.000Z","size":81,"stargazers_count":67,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-10T00:42:14.473Z","etag":null,"topics":["composer-package","laravel-package","library","php"],"latest_commit_sha":null,"homepage":"https://csam.dev/postman-collection-generator/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/profclems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-18T02:42:13.000Z","updated_at":"2024-09-20T16:25:03.000Z","dependencies_parsed_at":"2022-08-28T14:22:25.067Z","dependency_job_id":null,"html_url":"https://github.com/profclems/postman-collection-generator","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profclems%2Fpostman-collection-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profclems%2Fpostman-collection-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profclems%2Fpostman-collection-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profclems%2Fpostman-collection-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/profclems","download_url":"https://codeload.github.com/profclems/postman-collection-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230423563,"owners_count":18223435,"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":["composer-package","laravel-package","library","php"],"created_at":"2024-10-15T14:58:04.991Z","updated_at":"2024-12-19T11:12:31.826Z","avatar_url":"https://github.com/profclems.png","language":"PHP","funding_links":[],"categories":["\u003ca name=\"L\"\u003e \u003c/a\u003eL"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/profclems/postman-collection-generator.svg?branch=master)](https://travis-ci.com/profclems/postman-collection-generator)\n[![Latest Stable Version](https://poser.pugx.org/profclems/postman-collection-generator/v)](//packagist.org/packages/profclems/postman-collection-generator) \n[![Total Downloads](https://poser.pugx.org/profclems/postman-collection-generator/downloads)](//packagist.org/packages/profclems/postman-collection-generator) \n[![Latest Unstable Version](https://poser.pugx.org/profclems/postman-collection-generator/v/unstable)](//packagist.org/packages/profclems/postman-collection-generator) \n[![License](https://poser.pugx.org/profclems/postman-collection-generator/license)](https://github.com/profclems/postman-collection-generator/blob/master/LICENSE)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/profclems/postman-collection-generator/issues)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fprofclems%2Fpostman-collection-generator.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fprofclems%2Fpostman-collection-generator?ref=badge_shield)\n\n## About\nThis package automatically generates postman collection from laravel api/web routes with just a single command\n\n## Postman Schema\nSupports postman collection [Schema v2.1.0](https://schema.getpostman.com/json/collection/v2.1.0/collection.json)\n\n## Installation\n\nInstall this bundle through [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require profclems/postman-collection-generator\n```\nSupports Auto-discovery for Laravel 5.5+\n\nFor older versions add the PostmanCollectionServiceProvider to providers in the config/app.php\n\n```php\n'providers' =\u003e [\n    ...\n    \\Profclems\\PostmanCollectionGenerator\\PostmanCollectionServiceProvider::class,\n];\n```\n## Usage\n\nTo generate collection for api routes, run\n```sh\nphp artisan postman:collection:export NameForCollection --api\n```\nThis will generate a ```yyyy_mm_dd_his_NameForCollection_api.json``` in your Laravel ```storage/app``` folder.\n\nTo generate collection for web routes, run\n```sh\nphp artisan postman:collection:export NameForCollection --web\n```\nThis will generate a ```yyyy_mm_dd_his_NameForCollection_web.json``` in your Laravel ```storage/app``` folder.\n\n\nChange `NameForCollection` to the name you want the collection file saved as.\n\n## Options\nBy default, the url is set to ```{{base_url}}``` which is a postman variable that can be set in your postman environment.\n```bash\n--api or --web to specify the type of route to export\n--url to specify the url for the collection. Eg. --url=localhost\n--port to specify the port. Eg --port=8000\n```\n## ToDo\n - Add support for other popular PHP frameworks\n - Convert postman collection to api/web routes\n\n## Contributing\nThank you for considering contributing to the this package! Feel free to submit a PR\n\n## Awards / Nominations\n[![PHP Classes Innovative Award Nominee](https://www.phpclasses.org/award/innovation/nominee.gif \"PHP Classes Innovative Award June 2020 Nominee\")](https://www.phpclasses.org/package/11687-PHP-Generate-routes-for-an-API-or-Web-applications.html)\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fprofclems%2Fpostman-collection-generator.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fprofclems%2Fpostman-collection-generator?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofclems%2Fpostman-collection-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprofclems%2Fpostman-collection-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofclems%2Fpostman-collection-generator/lists"}