{"id":37012247,"url":"https://github.com/paramientos/larasplitter","last_synced_at":"2026-01-14T01:04:13.007Z","repository":{"id":57056303,"uuid":"305639771","full_name":"paramientos/larasplitter","owner":"paramientos","description":"Laravel Api Splitter - Make your endpoints manageable","archived":true,"fork":false,"pushed_at":"2020-10-20T13:18:38.000Z","size":44,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T16:32:38.000Z","etag":null,"topics":["api","laravel","laravel-api","laravel-route","php","routes","seperate-api-laravel","soysaltan","split-your-laravel-api"],"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/paramientos.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":"2020-10-20T08:25:22.000Z","updated_at":"2024-09-09T11:31:10.000Z","dependencies_parsed_at":"2022-08-24T07:30:25.280Z","dependency_job_id":null,"html_url":"https://github.com/paramientos/larasplitter","commit_stats":null,"previous_names":["paramientos/larasplitter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/paramientos/larasplitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramientos%2Flarasplitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramientos%2Flarasplitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramientos%2Flarasplitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramientos%2Flarasplitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paramientos","download_url":"https://codeload.github.com/paramientos/larasplitter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramientos%2Flarasplitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","laravel","laravel-api","laravel-route","php","routes","seperate-api-laravel","soysaltan","split-your-laravel-api"],"created_at":"2026-01-14T01:04:12.328Z","updated_at":"2026-01-14T01:04:12.976Z","avatar_url":"https://github.com/paramientos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Decompose your Laravel route files\n\n[![Latest Stable Version](https://poser.pugx.org/soysaltan/larasplitter/v)](//packagist.org/packages/soysaltan/larasplitter) [![Total Downloads](https://poser.pugx.org/soysaltan/larasplitter/downloads)](//packagist.org/packages/soysaltan/larasplitter) [![Latest Unstable Version](https://poser.pugx.org/soysaltan/larasplitter/v/unstable)](//packagist.org/packages/soysaltan/larasplitter) [![License](https://poser.pugx.org/soysaltan/larasplitter/license)](//packagist.org/packages/soysaltan/larasplitter)\n\nWhile working with Laravel, you may encounter a scenario in which route files need to be separated.In this case you will need to make some changes in the project. This process can often become a chore, I have often faced this problem so I developed a package to help you automate this kind of chore.\n\n## Getting Started\n\n### 1. Install\n\nRun the following command:\n\n```bash\ncomposer require soysaltan/larasplitter\n```\n\n### 2. Register (for Laravel \u003c 5.5)\n\nRegister the service provider in `config/app.php`\n\n```php\n Soysaltan\\LaraSplitter\\Provider::class,\n```\n\n### 3. Publish\n\nPublish config file.\n\n```bash\nphp artisan vendor:publish --tag=larasplitter\n```\n\n\n### 4. Configure\n\nYou can change the settings of your app from `config/larasplitter.php` file\n\n## Usage\n\n```php\nphp artisan spl:it\n```\nAfter this command, you will be asked two questions.\n- Please enter a api file name (the filename will be saved with '.api' suffix): **foo**\n- Please enter an endpoint name: **foos**\n\nFinally, you will get a message like\n  - You can find your '**SplitApiFooServiceProvider**' class at '**/path/to/app/Providers'**\n  - Your '**foo.api.php**' file has located at '**/path/to/routes**'\n\nYou can hit the endpoint you have created : **/api/foos**\n\n## Requirements\n- Laravel 5.3+\n- PHP 5.6.4+\n\n### How it works\n**Soysaltan\\LaraSplitter\\Provider** registers the route file you want to separate under the **app/Providers** folder. This register dynamically does the following:\n\n```php\n foreach (glob(base_path('app/Providers/SplitApi*')) as $file) {\n\t\t$className = basename($file, '.php');\n\t\t$this-\u003eapp-\u003eregister(\"\\App\\Providers\\\\$className\");\n\t}\n```\nEach separate route file is mapped to a provider and registered in the system in this way.\n\n## Changelog\n\nPlease see [Releases](../../releases) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email soysaltann@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Soysal Tan](https://github.com/soysaltan)\n\n## License\n\nThe MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparamientos%2Flarasplitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparamientos%2Flarasplitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparamientos%2Flarasplitter/lists"}