{"id":26529221,"url":"https://github.com/phpnexus/cors","last_synced_at":"2026-02-27T03:32:46.291Z","repository":{"id":57040672,"uuid":"57958696","full_name":"phpnexus/cors","owner":"phpnexus","description":"Provides a lightweight, extensible, framework-agnostic CORS class","archived":false,"fork":false,"pushed_at":"2026-02-12T08:24:53.000Z","size":104,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-12T15:47:45.010Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phpnexus.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-05-03T09:47:31.000Z","updated_at":"2026-02-12T08:16:46.000Z","dependencies_parsed_at":"2025-03-21T16:49:15.391Z","dependency_job_id":null,"html_url":"https://github.com/phpnexus/cors","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/phpnexus/cors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpnexus%2Fcors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpnexus%2Fcors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpnexus%2Fcors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpnexus%2Fcors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpnexus","download_url":"https://codeload.github.com/phpnexus/cors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpnexus%2Fcors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29883745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-03-21T16:29:17.764Z","updated_at":"2026-02-27T03:32:46.266Z","avatar_url":"https://github.com/phpnexus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CORS\n\n[![Latest Version](http://img.shields.io/packagist/v/phpnexus/cors.svg?style=flat-square)](https://github.com/phpnexus/cors/releases)\n[![Build Status](https://img.shields.io/travis/phpnexus/cors/master.svg?style=flat-square)](https://travis-ci.org/phpnexus/cors)\n[![Software License](https://img.shields.io/badge/license-Apache_2.0-brightgreen.svg?style=flat-square)](LICENSE.md)\n\nProvides a lightweight, extensible, framework-agnostic CORS class.\n\n**You probably want to check these specific implementations for easy installation**\n\n* [PSR-7](https://github.com/phpnexus/cors-psr7)\n\n## Installation\n\nIt's recommended that you use [Composer](https://getcomposer.org/) to install Cors:\n\n```bash\n$ composer require phpnexus/cors\n```\n\nThis package requires PHP 7.4 or 8.1.\n\n## Usage\n\nTODO\n\n## Configuration\n\n### Allow-Methods\n\nDefault: `[]`\n\nAn array of allowed HTTP methods. These names are **case-sensitive**.\n\nExample: `['GET', 'POST']`\n\n### Allow-Headers\n\nDefault: `[]`\n\nExample: `['Content-Type']`\n\n### Allow-Origins\n\nDefault: `[]`\n\nAn array of allowed origins, in the form `scheme://hostname`.\n\nExample: `['http://example.com', 'https://example.com']`\n\n**This is not a replacement for proper access control measures.**\n\nNote: An asterisk (`*`) _can_ also be used to allow any origin, but as per the specification the asterisk (`*`) _cannot_ be used when Allow-Credentials is `true`.\n\n### Allow-Credentials\n\nDefault: `false`\n\nUse `true` to allow cookies to be sent with the request.\n\nNote: Cannot be `true` when the Allow-Origin contains `\"*\"`.\n\n### Expose-Headers\n\nDefault: `[]`\n\n### Max-Age\n\nDefault: `0` (no cache)\n\nNumber of seconds to cache the preflight response.\n\n## Roadmap\n\n* Benchmarks\n\n## Versioning\n\nThe packages adheres to the [SemVer](http://semver.org/) specification, and there will be full backward compatibility between minor versions.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## License\n\nThis package is released under the Apache 2.0 License. See the bundled [LICENSE](https://github.com/phpnexus/cors/blob/master/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpnexus%2Fcors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpnexus%2Fcors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpnexus%2Fcors/lists"}