{"id":21056978,"url":"https://github.com/novaday-co/laravel-api-response","last_synced_at":"2026-05-15T23:02:59.747Z","repository":{"id":57028678,"uuid":"340645889","full_name":"novaday-co/laravel-api-response","owner":"novaday-co","description":"This Package helps developers to easily make response for API","archived":false,"fork":false,"pushed_at":"2021-08-03T04:19:16.000Z","size":37,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T00:23:57.502Z","etag":null,"topics":["api","easy-response","laravel","laravel-api","laravel-response","php","php-api"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/novaday-co/laravel-api-response","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/novaday-co.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":"2021-02-20T12:09:56.000Z","updated_at":"2022-03-10T10:13:12.000Z","dependencies_parsed_at":"2022-08-23T17:40:49.301Z","dependency_job_id":null,"html_url":"https://github.com/novaday-co/laravel-api-response","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/novaday-co/laravel-api-response","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novaday-co%2Flaravel-api-response","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novaday-co%2Flaravel-api-response/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novaday-co%2Flaravel-api-response/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novaday-co%2Flaravel-api-response/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/novaday-co","download_url":"https://codeload.github.com/novaday-co/laravel-api-response/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novaday-co%2Flaravel-api-response/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266689323,"owners_count":23969142,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["api","easy-response","laravel","laravel-api","laravel-response","php","php-api"],"created_at":"2024-11-19T16:55:26.527Z","updated_at":"2026-05-15T23:02:54.713Z","avatar_url":"https://github.com/novaday-co.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cimg src=\"https://raw.githubusercontent.com/faridfr/faridfr/master/200px-laravel-api-response.png\" height=\"120\" alt=\"Laravel API Response package\" /\u003e\n    \n# Laravel API Response\n\nThis Package helps developers to easily make response for API . Add extra data to **collection** response . Short magic method that use your translate files to set messages .\n\n----\n\n## How to install :\n```\ncomposer require novaday-co/laravel-api-response\n```\n\n\n## How to use :\n\n### Success response\n```php\nApi::success(\"Successful Action\")-\u003eresponse();\n```\n\n### Success response\n```php\nApi::success(\"Successful Action\")-\u003eresponse();\n```\n\n### Failure response\n```php\nApi::failure(\"Failed\")-\u003eresponse();\n```\n\n### Custom response\n```php\nApi::customResponse(201,'Created Successfully',['key'=\u003e'value'])-\u003eresponse();\n```\n\n### With `data`\n```php\nApi::success('Ok',['key'=\u003e'value'])-\u003eresponse();\n```\n\n### External data in `data`\n```php\nApi::success('Ok',[ User::all() ])-\u003ewithData([ Customer::first() ])-\u003eresponse();\n```\n\n### External data next to `data`\n```php\nApi::success('Ok',[ User::all() ])-\u003ewith([ 'Customers' =\u003e Customer::all() ])-\u003eresponse();\n```\n\n### Short magic method for set messages\n```php\nApi::updated()-\u003eresponse();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovaday-co%2Flaravel-api-response","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnovaday-co%2Flaravel-api-response","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovaday-co%2Flaravel-api-response/lists"}