{"id":15022835,"url":"https://github.com/treblle/treblle-php","last_synced_at":"2025-05-02T12:31:53.415Z","repository":{"id":44988454,"uuid":"220529029","full_name":"Treblle/treblle-php","owner":"Treblle","description":"The official Treblle SDK for PHP. Seamlessly integrate Treblle to manage communication with your dashboard, send errors, and secure sensitive data.","archived":false,"fork":false,"pushed_at":"2025-02-05T15:57:14.000Z","size":2194,"stargazers_count":20,"open_issues_count":4,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T01:59:59.131Z","etag":null,"topics":["api","api-monitoring","api-observability","backend","developer-tool","logging","php","rest-api","restful-api","sdk","sdk-php","treblle","treblle-sdk"],"latest_commit_sha":null,"homepage":"https://www.treblle.com/","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/Treblle.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-08T18:51:58.000Z","updated_at":"2025-02-05T15:56:57.000Z","dependencies_parsed_at":"2024-06-12T17:27:35.801Z","dependency_job_id":null,"html_url":"https://github.com/Treblle/treblle-php","commit_stats":{"total_commits":40,"total_committers":6,"mean_commits":6.666666666666667,"dds":0.575,"last_synced_commit":"78d171976237eb8d06d17205e5deed077d4f35de"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Ftreblle-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Ftreblle-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Ftreblle-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Ftreblle-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Treblle","download_url":"https://codeload.github.com/Treblle/treblle-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252038209,"owners_count":21684653,"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":["api","api-monitoring","api-observability","backend","developer-tool","logging","php","rest-api","restful-api","sdk","sdk-php","treblle","treblle-sdk"],"created_at":"2024-09-24T19:58:26.319Z","updated_at":"2025-05-02T12:31:50.994Z","avatar_url":"https://github.com/Treblle.png","language":"PHP","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://treblle-github.s3.us-east-1.amazonaws.com/github-header.jpg\"/\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\n# Treblle\n\n\u003ca href=\"https://docs.treblle.com/en/integrations\" target=\"_blank\"\u003eIntegrations\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"http://treblle.com/\" target=\"_blank\"\u003eWebsite\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"https://docs.treblle.com\" target=\"_blank\"\u003eDocs\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"https://blog.treblle.com\" target=\"_blank\"\u003eBlog\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"https://twitter.com/treblleapi\" target=\"_blank\"\u003eTwitter\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"https://treblle.com/chat\" target=\"_blank\"\u003eDiscord\u003c/a\u003e\n\u003cbr /\u003e\n\n  \u003chr /\u003e\n\u003c/div\u003e\n\nTreblle is a lightweight SDK that helps Engineering and Product teams build, ship \u0026 maintain REST based APIs faster.\n\n## Features\n\n\u003cdiv align=\"center\"\u003e\n  \u003cbr /\u003e\n  \u003cimg src=\"https://treblle-github.s3.amazonaws.com/features.png\"/\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n\u003c/div\u003e\n\n- [API Monitoring \u0026 Observability](https://www.treblle.com/features/api-monitoring-observability)\n- [Auto-generated API Docs](https://www.treblle.com/features/auto-generated-api-docs)\n- [API analytics](https://www.treblle.com/features/api-analytics)\n- [Treblle API Score](https://www.treblle.com/features/api-quality-score)\n- [API Lifecycle Collaboration](https://www.treblle.com/features/api-lifecycle)\n- [Native Treblle Apps](https://www.treblle.com/features/native-apps)\n\n\n## How Treblle Works\nOnce you’ve integrated a Treblle SDK in your codebase, this SDK will send requests and response data to your Treblle Dashboard.\n\nIn your Treblle Dashboard you get to see real-time requests to your API, auto-generated API docs, API analytics like how fast the response was for an endpoint, the load size of the response, etc.\n\nTreblle also uses the requests sent to your Dashboard to calculate your API score which is a quality score that’s calculated based on the performance, quality, and security best practices for your API.\n\n\u003e Visit [https://docs.treblle.com](http://docs.treblle.com) for the complete documentation.\n\n## Security\n\n### Masking fields\nMasking fields ensure certain sensitive data are removed before being sent to Treblle.\n\nTo make sure masking is done before any data leaves your server [we built it into all our SDKs](https://docs.treblle.com/en/security/masked-fields#fields-masked-by-default).\n\nThis means data masking is super fast and happens on a programming level before the API request is sent to Treblle. You can [customize](https://docs.treblle.com/en/security/masked-fields#custom-masked-fields) exactly which fields are masked when you’re integrating the SDK.\n\n\u003e Visit the [Masked fields](https://docs.treblle.com/en/security/masked-fields) section of the [docs](https://docs.sailscasts.com) for the complete documentation.\n\n\n## Get Started\n\n1. Sign in to [Treblle](https://app.treblle.com).\n2. [Create a Treblle project](https://docs.treblle.com/en/dashboard/projects#creating-a-project).\n3. [Setup the SDK](#install-the-SDK) for your platform.\n\n### Install the SDK\n\n```sh\n composer require treblle/treblle-php\n```\n\nAfter retrieving your [API key](https://docs.treblle.com/en/dashboard#accessing-your-api-key) and [Project ID](https://docs.treblle.com/en/dashboard/projects#project-id) from the Treblle dashboard, simply initialize Treblle in your API code like so:\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse GuzzleHttp\\Client;\nuse Treblle\\Factory\\TreblleFactory;\n\nrequire_once __DIR__.'/../vendor/autoload.php';\n\nerror_reporting(E_ALL);\nob_start();\n\n$treblle = TreblleFactory::create('_YOUR_API_KEY_', '_YOUR_PROJECT_ID_');\n```\n\nThat’s it. Your API requests and responses are now being sent to your Treblle project.\n\n\n\u003e See the [docs](https://docs.treblle.com/en/integrations/php) for this SDK to learn more.\n\n## Available SDKs\n\nTreblle provides [open-source SDKs](https://docs.treblle.com/en/integrations) that let you seamlessly integrate Treblle with your REST-based APIs.\n\n- [`treblle-laravel`](https://github.com/Treblle/treblle-laravel): SDK for Laravel\n- [`treblle-php`](https://github.com/Treblle/treblle-php): SDK for PHP\n- [`treblle-symfony`](https://github.com/Treblle/treblle-symfony): SDK for Symfony\n- [`treblle-lumen`](https://github.com/Treblle/treblle-lumen): SDK for Lumen\n- [`treblle-sails`](https://github.com/Treblle/treblle-sails): SDK for Sails\n- [`treblle-adonisjs`](https://github.com/Treblle/treblle-adonisjs): SDK for AdonisJS\n- [`treblle-fastify`](https://github.com/Treblle/treblle-fastify): SDK for Fastify\n- [`treblle-directus`](https://github.com/Treblle/treblle-directus): SDK for Directus\n- [`treblle-strapi`](https://github.com/Treblle/treblle-strapi): SDK for Strapi\n- [`treblle-express`](https://github.com/Treblle/treblle-express): SDK for Express\n- [`treblle-koa`](https://github.com/Treblle/treblle-koa): SDK for Koa\n- [`treblle-go`](https://github.com/Treblle/treblle-go): SDK for Go\n- [`treblle-ruby`](https://github.com/Treblle/treblle-ruby): SDK for Ruby on Rails\n- [`treblle-python`](https://github.com/Treblle/treblle-python): SDK for Python/Django\n\n\u003e See the [docs](https://docs.treblle.com/en/integrations) for more on SDKs and Integrations.\n\n## Other Packages\n\nBesides the SDKs, we also provide helpers and configuration used for SDK\ndevelopment. If you're thinking about contributing to or creating a SDK, have a look at the resources\nbelow:\n\n- [`treblle-utils`](https://github.com/Treblle/treblle-utils):  A set of helpers and\n  utility functions useful for the JavaScript SDKs.\n- [`php-utils`](https://github.com/Treblle/php-utils):   A set of helpers and\n  utility functions useful for the PHP SDKs.\n\n## Community 💙\n\nFirst and foremost: **Star and watch this repository** to stay up-to-date.\n\nAlso, follow our [Blog](https://blog.treblle.com), and on [Twitter](https://twitter.com/treblleapi).\n\nYou can chat with the team and other members on [Discord](https://treblle.com/chat) and follow our tutorials and other video material at [YouTube](https://youtube.com/@treblle).\n\n[![Treblle Discord](https://img.shields.io/badge/Treblle%20Discord-Join%20our%20Discord-F3F5FC?labelColor=7289DA\u0026style=for-the-badge\u0026logo=discord\u0026logoColor=F3F5FC\u0026link=https://treblle.com/chat)](https://treblle.com/chat)\n\n[![Treblle YouTube](https://img.shields.io/badge/Treblle%20YouTube-Subscribe%20on%20YouTube-F3F5FC?labelColor=c4302b\u0026style=for-the-badge\u0026logo=YouTube\u0026logoColor=F3F5FC\u0026link=https://youtube.com/@treblle)](https://youtube.com/@treblle)\n\n[![Treblle on Twitter](https://img.shields.io/badge/Treblle%20on%20Twitter-Follow%20Us-F3F5FC?labelColor=1DA1F2\u0026style=for-the-badge\u0026logo=Twitter\u0026logoColor=F3F5FC\u0026link=https://twitter.com/treblleapi)](https://twitter.com/treblleapi)\n\n### How to contribute\n\nHere are some ways of contributing to making Treblle better:\n\n- **[Try out Treblle](https://docs.treblle.com/en/introduction#getting-started)**, and let us know ways to make Treblle better for you. Let us know here on [Discord](https://treblle.com/chat).\n- Join our [Discord](https://treblle.com/chat) and connect with other members to share and learn from.\n- Send a pull request to any of our [open source repositories](https://github.com/Treblle) on Github. Check the contribution guide on the repo you want to contribute to for more details about how to contribute. We're looking forward to your contribution!\n\n### Contributors\n\u003ca href=\"https://github.com/Treblle/treblle-php/graphs/contributors\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg  src=\"https://contrib.rocks/image?repo=Treblle/treblle-php\" alt=\"A table of avatars from the project's contributors\" /\u003e\n  \u003c/p\u003e\n\u003c/a\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreblle%2Ftreblle-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreblle%2Ftreblle-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreblle%2Ftreblle-php/lists"}