{"id":13620269,"url":"https://github.com/Treblle/security-headers","last_synced_at":"2025-04-14T19:31:34.527Z","repository":{"id":165482636,"uuid":"639869483","full_name":"Treblle/security-headers","owner":"Treblle","description":"A collection of HTTP middleware classes to improve the security headers in your Laravel application","archived":false,"fork":false,"pushed_at":"2024-03-13T14:17:33.000Z","size":18,"stargazers_count":94,"open_issues_count":3,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-09T16:09:49.169Z","etag":null,"topics":["application-security","backend","classes","collection","http","laravel","laravel-package","middleware","php","security-headers"],"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":"2023-05-12T12:13:31.000Z","updated_at":"2025-02-12T12:45:48.000Z","dependencies_parsed_at":"2024-06-12T03:30:36.690Z","dependency_job_id":"8e93a5a3-f8dd-4618-a481-560a2580bc12","html_url":"https://github.com/Treblle/security-headers","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"f03729aa31e9f86eb28f839946df2b4e319a0c02"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Fsecurity-headers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Fsecurity-headers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Fsecurity-headers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Fsecurity-headers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Treblle","download_url":"https://codeload.github.com/Treblle/security-headers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248945894,"owners_count":21187404,"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":["application-security","backend","classes","collection","http","laravel","laravel-package","middleware","php","security-headers"],"created_at":"2024-08-01T21:00:53.953Z","updated_at":"2025-04-14T19:31:29.504Z","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 Security Headers\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\n[![Latest Version](https://img.shields.io/packagist/v/treblle/security-headers)](https://packagist.org/packages/treblle/security-headers)\n[![Total Downloads](https://img.shields.io/packagist/dt/treblle/security-headers)](https://packagist.org/packages/treblle/security-headers)\n[![MIT Licence](https://img.shields.io/packagist/l/treblle/security-headers)](LICENSE)\n[![Tests](https://github.com/treblle/security-headers/actions/workflows/tests.yml/badge.svg)](https://github.com/treblle/security-headers/actions/workflows/tests.yml)\n\nTreblle makes it super easy to understand what’s going on with your APIs and the apps that use them. Just by adding\nTreblle to your API out of the box you get:\n\n* Real-time API monitoring and logging\n* Auto-generated API docs with OAS support\n* API analytics\n* Quality scoring\n* One-click testing\n* API management on the go\n* and more...\n\n## Requirements\n\n* PHP 8.2\n\n## Installation\n\nYou can install Treblle Security Headers via [Composer](http://getcomposer.org/). Simply run the following command:\n\n```bash\ncomposer require treblle/security-headers\n```\n\n## Getting started\n\nTo start, you need to publish the configuration.\n\n```bash\nphp artisan vendor:publish --provider=\"Treblle\\SecurityHeaders\\Providers\\PackageServiceProvider\" --tag=\"security-headers\"\n```\n\nThis is the default content of the config file that will be published at `config/headers.php`:\n\n```php\nreturn [\n    'remove' =\u003e [\n        'X-Powered-By',\n        'x-powered-by',\n        'Server',\n        'server',\n    ],\n\n    'referrer-policy' =\u003e 'no-referrer-when-downgrade',\n\n    'strict-transport-security' =\u003e 'max-age=31536000; includeSubDomains',\n\n    'certificate-transparency' =\u003e 'enforce, max-age=30',\n\n    'permissions-policy' =\u003e 'autoplay=(self), camera=(), encrypted-media=(self), fullscreen=(), geolocation=(self), gyroscope=(self), magnetometer=(), microphone=(), midi=(), payment=(), sync-xhr=(self), usb=()',\n\n    'content-type-options' =\u003e 'nosniff',\n];\n```\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/security-headers/graphs/contributors\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg  src=\"https://contrib.rocks/image?repo=treblle/security-headers\" alt=\"A table of avatars from the project's contributors\" /\u003e\n  \u003c/p\u003e\n\u003c/a\u003e\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTreblle%2Fsecurity-headers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTreblle%2Fsecurity-headers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTreblle%2Fsecurity-headers/lists"}