{"id":17316884,"url":"https://github.com/paunin/laswagger","last_synced_at":"2026-05-15T12:03:52.539Z","repository":{"id":57036519,"uuid":"80831687","full_name":"paunin/laswagger","owner":"paunin","description":"This package is a wrapper for Swagger-php and makes it easy to integrate with Lumen/Larvarel","archived":false,"fork":false,"pushed_at":"2017-02-04T03:28:31.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-12T21:23:10.268Z","etag":null,"topics":["laravel","lumen","swagger","swagger-codegen","swagger-php"],"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/paunin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-03T13:31:59.000Z","updated_at":"2017-02-04T06:57:14.000Z","dependencies_parsed_at":"2022-08-23T20:50:56.631Z","dependency_job_id":null,"html_url":"https://github.com/paunin/laswagger","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/paunin/laswagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paunin%2Flaswagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paunin%2Flaswagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paunin%2Flaswagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paunin%2Flaswagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paunin","download_url":"https://codeload.github.com/paunin/laswagger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paunin%2Flaswagger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272965455,"owners_count":25023071,"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-08-31T02:00:09.071Z","response_time":79,"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":["laravel","lumen","swagger","swagger-codegen","swagger-php"],"created_at":"2024-10-15T13:14:41.546Z","updated_at":"2026-05-15T12:03:47.504Z","avatar_url":"https://github.com/paunin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# paunin/laswagger\n\nThis package is a wrapper for [Swagger-php](https://github.com/zircote/swagger-php) and makes it easy to integrate with Lumen/Larvarel.\n\n## Usage\n\n### Installation\nVia Composer\n\nAdd information about new package in your `composer.json`\n```json\n    \"require\": {\n    ...\n        \"paunin/laswagger\": \"\u003e=1.0.0\"\n    ...\n    }\n```\n\nAfter the composer install finishes, register the service provider:\n\n * Lumen Application:\n\n```php\n$app-\u003eregister(Laswagger\\Providers\\LumeSwaggerServiceProvider::class);\n```\n\n * Laravel Application: not supports yet.\n\nNow you can wo with laswagger:\n* Run `php artisan swagger:generate file_name [base_host]`: to generate swagger api docs.\n\n* Go to `/swagger/api-docs` (default routing config) to see swagger api docs in JSON format\n\n### Default configuration\n```php\n\u003c?php\nreturn [\n    'routes' =\u003e [\n        'prefix' =\u003e 'swagger',\n        'cors'   =\u003e false\n    ],\n    'api' =\u003e [\n        'directories' =\u003e [base_path('app')],\n        'excludes' =\u003e [],\n        'host' =\u003e null\n    ]\n];\n```\n\n### Customize configuration\nIn order to change default config you can copy the configuration template in `config/laswagger.php` to your application's `config` directory and modify according to your needs.\nFor more information see the [Configuration Files](http://lumen.laravel.com/docs/configuration#configuration-files) section in the Lumen documentation.\n\n## Tests\n```sh\n./vendor/phpunit/phpunit/phpunit\n```\nSee test result at `./build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaunin%2Flaswagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaunin%2Flaswagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaunin%2Flaswagger/lists"}