{"id":33945099,"url":"https://github.com/lzyim/json-response","last_synced_at":"2026-04-07T06:31:19.657Z","repository":{"id":57055365,"uuid":"70333443","full_name":"lzyim/json-response","owner":"lzyim","description":"JSON-API response for Laravel","archived":false,"fork":false,"pushed_at":"2017-06-18T09:25:50.000Z","size":4,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T06:25:16.551Z","etag":null,"topics":["json-response","laravel"],"latest_commit_sha":null,"homepage":null,"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/lzyim.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":"2016-10-08T13:37:06.000Z","updated_at":"2018-04-13T06:05:36.000Z","dependencies_parsed_at":"2022-08-24T14:00:20.696Z","dependency_job_id":null,"html_url":"https://github.com/lzyim/json-response","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lzyim/json-response","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzyim%2Fjson-response","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzyim%2Fjson-response/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzyim%2Fjson-response/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzyim%2Fjson-response/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lzyim","download_url":"https://codeload.github.com/lzyim/json-response/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzyim%2Fjson-response/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31503380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"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":["json-response","laravel"],"created_at":"2025-12-12T17:36:10.327Z","updated_at":"2026-04-07T06:31:19.649Z","avatar_url":"https://github.com/lzyim.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Json Response\n=====\n\nInstallation\n------------\n\nInstall using composer:\n\n```bash\ncomposer require soloslee/json-response\n```\n\nLaravel (optional)\n------------------\n\nAdd the service provider in `config/app.php`:\n\n```php\n'Soloslee\\JsonResponse\\JsonResponseServiceProvider::class',\n```\n\nAnd add the JsonResponse alias to `config/app.php`:\n\n```php\n'JsonResponse' =\u003e Soloslee\\JsonResponse\\Facades\\JsonResponse::class,\n```\n\nBasic Usage\n-----------\n\nStart by creating an `JsonResponse` instance (or use the `JsonResponse` Facade if you are using Laravel):\n\n```php\nuse Soloslee\\JsonResponse\\JsonResponse;\n\nreturn JsonResponse::success();\n```\n\n### Success\n\n```php\nJsonResponse::success([\n    'id' =\u003e $user-\u003eid,\n    'phone' =\u003e $user-\u003ephone,\n    'email' =\u003e $user-\u003eemail,\n    'authorized' =\u003e $user-\u003ecleaner,\n    'token' =\u003e $user-\u003etoken\n]);\n```\n\n### Error\n\n```php\nJsonResponse::error('Fails to send message.', 602);\n```\n\n## License\n\nLaravel Json Response is licensed under [MIT license](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzyim%2Fjson-response","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flzyim%2Fjson-response","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzyim%2Fjson-response/lists"}