{"id":14983868,"url":"https://github.com/phptcloud/jsend-symfony-bundle","last_synced_at":"2025-04-10T19:41:38.928Z","repository":{"id":224725285,"uuid":"764047218","full_name":"PHPTCloud/jsend-symfony-bundle","owner":"PHPTCloud","description":"Implementation of jsend specification for http responses.","archived":false,"fork":false,"pushed_at":"2024-04-06T17:14:02.000Z","size":38,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T17:21:15.540Z","etag":null,"topics":["jsend","php","symfony-bundle"],"latest_commit_sha":null,"homepage":"","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/PHPTCloud.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-27T11:42:55.000Z","updated_at":"2025-02-20T14:14:54.000Z","dependencies_parsed_at":"2024-02-27T12:51:56.882Z","dependency_job_id":"4a04d80f-6f97-4f60-9729-707bfd8e7f98","html_url":"https://github.com/PHPTCloud/jsend-symfony-bundle","commit_stats":null,"previous_names":["phptcloud/jsend-symfony-bundle"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPTCloud%2Fjsend-symfony-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPTCloud%2Fjsend-symfony-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPTCloud%2Fjsend-symfony-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPTCloud%2Fjsend-symfony-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHPTCloud","download_url":"https://codeload.github.com/PHPTCloud/jsend-symfony-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281415,"owners_count":21077423,"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":["jsend","php","symfony-bundle"],"created_at":"2024-09-24T14:08:05.822Z","updated_at":"2025-04-10T19:41:38.901Z","avatar_url":"https://github.com/PHPTCloud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symfony jsend bundle\n\n![version](https://img.shields.io/badge/version-3.0.2-blue) ![tests](https://img.shields.io/badge/tests-yes-blue) ![docs](https://img.shields.io/badge/docs-yes-blue)  ![license](https://img.shields.io/badge/license-MIT-brightgreen) ![useful](https://img.shields.io/badge/Maintained%3F-yes-brightgreen)\n\nImplementation of [jsend](https://github.com/omniti-labs/jsend) specification for http responses\n\n# Install\n\n```bash\ncomposer require phptcloud/symfony-jsend-bundle\n```\n\n## Usage\n\n```php\n$responseFactory = new \\JsendStandard\\Factory\\ResponseFactory();\n// or use factory through symfony container ...\n```\n\n```php\n$responseFactory-\u003ecreateJsonResponse(new ResponseBodyObject(ResponseBodyObject::STATUS_SUCCESS));\n```\n\n```php\n$responseFactory-\u003ecreateJsonResponse(new ResponseBodyObject(\n    ResponseBodyObject::STATUS_FAIL,\n    [],\n    400,\n    'validation error'\n));\n```\n\n```php\n$responseFactory-\u003ecreateJsonResponse(new ResponseBodyObject(\n    ResponseBodyObject::STATUS_ERROR,\n    [],\n    500,\n    'Internal server error'\n));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphptcloud%2Fjsend-symfony-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphptcloud%2Fjsend-symfony-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphptcloud%2Fjsend-symfony-bundle/lists"}