You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure the SDK by adding the following snippet to your project configuration. If you have Symfony 3.4 add it to `app/config/config_prod.yml`. For Symfony 4 or newer add the value to `config/packages/treblle.yaml`.
88
+
Configure the SDK by adding the following snippet to `config/packages/treblle.yaml`:
91
89
92
90
```yaml
93
91
treblle:
94
-
project_id: "%env(TREBLLE_PROJECT_ID)%"
95
92
api_key: "%env(TREBLLE_API_KEY)%"
93
+
sdk_token: "%env(TREBLLE_SDK_TOKEN)%"
96
94
debug: false
97
-
ignored_environments: dev
95
+
ignored_environments: dev,test,testing
98
96
masked_fields:
99
97
- password
100
-
- api_key
98
+
- pwd
101
99
- secret
100
+
- password_confirmation
101
+
- cc
102
+
- card_number
103
+
- ccv
104
+
- ssn
105
+
- credit_score
106
+
excluded_headers:
107
+
- Authorization
108
+
- X-Api-Key
102
109
```
103
110
111
+
### Configuration Options
112
+
113
+
- `api_key` (required): Your Treblle API key (project ID)
114
+
- `sdk_token` (required): Your Treblle SDK token
115
+
- `debug` (optional, default: `false`): Enable debug mode for development
116
+
- `ignored_environments` (optional, default: `dev,test,testing`): Comma-separated list of environments to ignore
117
+
- `masked_fields` (optional): Array of field names to mask in request/response data
118
+
- `excluded_headers` (optional): Array of header patterns to exclude from tracking
119
+
- `url` (optional): Custom Treblle endpoint URL for self-hosted instances
120
+
121
+
### Requirements
122
+
123
+
- PHP 8.2, 8.3, or 8.4
124
+
- Symfony 6.4, 7.x, or 8.x
125
+
- JSON extension
126
+
104
127
> See the [docs](https://docs.treblle.com/en/integrations/symfony) for this SDK to learn more.
105
128
106
129
## Available SDKs
107
130
108
131
Treblle provides [open-source SDKs](https://docs.treblle.com/en/integrations) that let you seamlessly integrate Treblle with your REST-based APIs.
109
132
133
+
- [`treblle-symfony`](https://github.com/Treblle/treblle-symfony): SDK for Symfony
110
134
- [`treblle-laravel`](https://github.com/Treblle/treblle-laravel): SDK for Laravel
111
135
- [`treblle-php`](https://github.com/Treblle/treblle-php): SDK for PHP
112
-
- [`treblle-symfony`](https://github.com/Treblle/treblle-symfony): SDK for Symfony
113
136
- [`treblle-lumen`](https://github.com/Treblle/treblle-lumen): SDK for Lumen
114
137
- [`treblle-sails`](https://github.com/Treblle/treblle-sails): SDK for Sails
115
138
- [`treblle-adonisjs`](https://github.com/Treblle/treblle-adonisjs): SDK for AdonisJS
> See the [docs](https://docs.treblle.com/en/integrations) for more on SDKs and Integrations.
126
149
127
-
## Other Packages
128
-
129
-
Besides the SDKs, we also provide helpers and configuration used for SDK
130
-
development. If you're thinking about contributing to or creating a SDK, have a look at the resources
131
-
below:
132
-
133
-
- [`treblle-utils`](https://github.com/Treblle/treblle-utils): A set of helpers and
134
-
utility functions useful for the JavaScript SDKs.
135
-
- [`php-utils`](https://github.com/Treblle/php-utils): A set of helpers and
136
-
utility functions useful for the PHP SDKs.
137
-
138
150
## Community 💙
139
151
140
152
First and foremost: **Star and watch this repository** to stay up-to-date.
@@ -157,6 +169,171 @@ Here are some ways of contributing to making Treblle better:
157
169
- Join our [Discord](https://treblle.com/chat) and connect with other members to share and learn from.
158
170
- 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!
159
171
172
+
## Upgrading
173
+
174
+
### Upgrading from v2.x to v3.0
175
+
176
+
Version 3.0 introduces **breaking changes** to align with treblle-php v5.0 naming conventions. This is a major release that requires configuration updates.
0 commit comments