{"id":15880029,"url":"https://github.com/junker/jsendresponse","last_synced_at":"2025-03-17T12:31:12.989Z","repository":{"id":43765266,"uuid":"60343251","full_name":"Junker/JSendResponse","owner":"Junker","description":"JSendResponse Component for HttpFoundation based frameworks (Symfony, Silex, Drupal etc.)","archived":false,"fork":false,"pushed_at":"2022-02-19T04:04:43.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-06T23:45:23.945Z","etag":null,"topics":["httpfoundation","jsend","laravel","php","silex","symfony"],"latest_commit_sha":null,"homepage":null,"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/Junker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-03T11:35:58.000Z","updated_at":"2023-02-13T02:27:06.000Z","dependencies_parsed_at":"2022-08-21T14:10:47.704Z","dependency_job_id":null,"html_url":"https://github.com/Junker/JSendResponse","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Junker%2FJSendResponse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Junker%2FJSendResponse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Junker%2FJSendResponse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Junker%2FJSendResponse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Junker","download_url":"https://codeload.github.com/Junker/JSendResponse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221678433,"owners_count":16862436,"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":["httpfoundation","jsend","laravel","php","silex","symfony"],"created_at":"2024-10-06T03:07:14.685Z","updated_at":"2024-10-27T13:05:33.314Z","avatar_url":"https://github.com/Junker.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSendResponse\nJSendResponse Component for HttpFoundation based frameworks (Symfony, Silex, Laravel etc.)\n\n## Installation\nThe best way to install JSendResponse is to use a [Composer](https://getcomposer.org/download):\n\n    php composer.phar require junker/symfony-jsend-response\n\n## Examples\n\n```php\nuse Junker\\JsendResponse\\JSendResponse;\nuse Junker\\JsendResponse\\JSendSuccessResponse;\nuse Junker\\JsendResponse\\JSendFailResponse;\nuse Junker\\JsendResponse\\JSendErrorResponse;\n\n\nclass AppController\n{\n\t...\n\n\t$data = ['id' =\u003e 50, 'name' =\u003e 'Waldemar'];\n\t$message = 'Error, total error!';\n\t$code = 5;\n\n\treturn new JsendResponse(JSendResponse::STATUS_SUCCESS, $data);\n\t#or\n\treturn new JsendResponse(JSendResponse::STATUS_FAIL, $data);\n\t#or \n\treturn new JsendResponse(JSendResponse::STATUS_ERROR, NULL, $message);\n\t#or\n\treturn new JsendResponse(JSendResponse::STATUS_ERROR, $data, $message, $code);\n\t#or\n\treturn new JsendSuccessResponse($data);\n\t#or\n\treturn new JsendFailResponse($data);\n\t#or\n\treturn new JsendErrorResponse($message);\n\t#or\n\treturn new JsendErrorResponse($message, $code, $data);\n\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunker%2Fjsendresponse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunker%2Fjsendresponse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunker%2Fjsendresponse/lists"}