{"id":43906244,"url":"https://github.com/MarcinOrlowski/laravel-api-response-builder","last_synced_at":"2026-02-18T13:00:36.629Z","repository":{"id":37612216,"uuid":"56006251","full_name":"MarcinOrlowski/laravel-api-response-builder","owner":"MarcinOrlowski","description":"Builds nice, normalized and easy to consume REST JSON responses for Laravel powered APIs.","archived":false,"fork":false,"pushed_at":"2026-01-31T06:32:06.000Z","size":2286,"stargazers_count":835,"open_issues_count":0,"forks_count":83,"subscribers_count":14,"default_branch":"master","last_synced_at":"2026-01-31T20:24:56.173Z","etag":null,"topics":["api","api-helper","chained-apis","json","json-response","laravel","php","rest-api"],"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/MarcinOrlowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-04-11T20:43:12.000Z","updated_at":"2026-01-31T06:31:41.000Z","dependencies_parsed_at":"2023-10-16T11:58:26.791Z","dependency_job_id":"e9993374-61d7-4e54-a3bb-aa652490eb8a","html_url":"https://github.com/MarcinOrlowski/laravel-api-response-builder","commit_stats":{"total_commits":1343,"total_committers":10,"mean_commits":134.3,"dds":0.5048399106478034,"last_synced_commit":"df76c0839a312a9b0987053856b3228bb0f70eb9"},"previous_names":[],"tags_count":80,"template":false,"template_full_name":null,"purl":"pkg:github/MarcinOrlowski/laravel-api-response-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcinOrlowski%2Flaravel-api-response-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcinOrlowski%2Flaravel-api-response-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcinOrlowski%2Flaravel-api-response-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcinOrlowski%2Flaravel-api-response-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcinOrlowski","download_url":"https://codeload.github.com/MarcinOrlowski/laravel-api-response-builder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcinOrlowski%2Flaravel-api-response-builder/sbom","scorecard":{"id":89753,"data":{"date":"2025-08-11","repo":{"name":"github.com/MarcinOrlowski/laravel-api-response-builder","commit":"e1a2a4784b5c64d78c9368acbfcbc2741bc36143"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Maintained","score":10,"reason":"26 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/coding-standards.yml:1","Warn: no topLevel permission defined: .github/workflows/coverage.yml:1","Warn: no topLevel permission defined: .github/workflows/markdown.yml:1","Warn: no topLevel permission defined: .github/workflows/phpstan.yml:1","Warn: no topLevel permission defined: .github/workflows/phpunit.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/coding-standards.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/coding-standards.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/coding-standards.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/coding-standards.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/coverage.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/coverage.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/coverage.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/coverage.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/coverage.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/coverage.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/coverage.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/coverage.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/markdown.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/markdown.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/markdown.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/markdown.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/phpstan.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/phpstan.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/phpstan.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/phpstan.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/phpstan.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/phpstan.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/phpstan.yml:85: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/phpstan.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/phpstan.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/phpstan.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/phpstan.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/phpstan.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/phpunit.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/phpunit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/phpunit.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/MarcinOrlowski/laravel-api-response-builder/phpunit.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/phpunit.yml:50","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  10 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T07:42:27.087Z","repository_id":37612216,"created_at":"2025-08-15T07:42:27.087Z","updated_at":"2025-08-15T07:42:27.087Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29580622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: 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","api-helper","chained-apis","json","json-response","laravel","php","rest-api"],"created_at":"2026-02-06T20:00:20.121Z","updated_at":"2026-02-18T13:00:36.623Z","avatar_url":"https://github.com/MarcinOrlowski.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"![REST API Response Builder for Laravel](artwork/laravel-api-response-builder-logo.webp)\n\n# REST API Response Builder for Laravel\n\n[![Latest Stable Version](https://poser.pugx.org/marcin-orlowski/laravel-api-response-builder/v)](https://packagist.org/packages/marcin-orlowski/laravel-api-response-builder)\n[![Codacy Grade Badge](https://api.codacy.com/project/badge/Grade/44f427e872e2480597bde0242417a2a7)](https://www.codacy.com/app/MarcinOrlowski/laravel-api-response-builder)\n[![Monthly Downloads](https://poser.pugx.org/marcin-orlowski/laravel-api-response-builder/d/monthly)](https://packagist.org/packages/marcin-orlowski/laravel-api-response-builder)\n[![Code Quality](https://scrutinizer-ci.com/g/MarcinOrlowski/laravel-api-response-builder/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/MarcinOrlowski/laravel-api-response-builder/?branch=master)\n[![Code Coverage](https://codecov.io/gh/MarcinOrlowski/laravel-api-response-builder/branch/master/graph/badge.svg?token=s3WnvhiI7n)](https://codecov.io/gh/MarcinOrlowski/laravel-api-response-builder)\n[![License](https://poser.pugx.org/marcin-orlowski/laravel-api-response-builder/license)](https://packagist.org/packages/marcin-orlowski/laravel-api-response-builder)\n\n## Table of contents\n\n* [Introduction](#introduction)\n* [Why should I use it?](#benefits)\n* [Usage examples](docs/examples.md#usage-examples)\n* [Features](#features)\n* [Extensive documentation](docs/README.md)\n* [License](#license)\n* [Changelog](docs/CHANGES.md)\n\n----\n\n## Introduction\n\n`ResponseBuilder` is a [Laravel](https://laravel.com/) package, designed to help you build nice,\nnormalized, and easy-to-consume REST API JSON responses.\n\n## Benefits\n\n`ResponseBuilder` is written for REST API developers by REST API developers, drawing from extensive\nexperience on both sides of API development. It's lightweight, has **no** dependencies, is\nthoroughly tested, and is simple to use while remaining flexible and powerful. It offers support\nfor [on-the-fly data conversion](docs/conversion.md), [localization](docs/docs.md#messages-and-localization),\nautomatic message building, [chained APIs](docs/docs.md#code-ranges),\nand [comprehensive documentation](docs/README.md).\n\nMoreover, the JSON structure produced by `ResponseBuilder` is designed with **your API users** in\nmind. Its [well-defined and predictable structure](docs/docs.md#response-structure) makes\ninteracting with your API using `ResponseBuilder` effortless. The simple, consistent JSON responses\nare easy to consume. **Your** clients will appreciate it!\n\nYou're also covered in case of emergencies. The provided\n[ExceptionHandlerHelper](docs/exceptions.md) ensures your API continues to communicate in\nJSON (not HTML) with its clients, even in unexpected situations.\n\nAdditionally, it includes [testing traits](docs/testing.md) that help you add PHPUnit-based tests\nfor your `ResponseBuilder` integration with just a few lines of code.\n\n## Features\n\n* [Easy to use](docs/examples.md#usage-examples),\n* [Stable and production ready](https://github.com/MarcinOrlowski/laravel-api-response-builder/releases)\n* [On-the-fly data object conversion](docs/conversion.md),\n* [API chaining support](docs/docs.md#code-ranges),\n* [Localization support](docs/docs.md#messages-and-localization),\n* Provides traits to help [unit test your API code](docs/testing.md),\n* Comes with an [exception handler helper](docs/exceptions.md) to ensure your API remains consumable\n  even in unexpected situations.\n* [No additional dependencies](composer.json).\n\n## License\n\n* Written and copyrighted \u0026copy;2016-2026 by Marcin Orlowski \u003cmail (#) marcinorlowski (.) com\u003e\n* ResponseBuilder is open-source software licensed under\n  the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMarcinOrlowski%2Flaravel-api-response-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMarcinOrlowski%2Flaravel-api-response-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMarcinOrlowski%2Flaravel-api-response-builder/lists"}