PHPackages                             prof/cors-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. prof/cors-helper

ActiveLibrary[Security](/categories/security)

prof/cors-helper
================

This library is to enable cross site origin sharing

1.7(5y ago)061MITPHP

Since Jul 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jassy1995/cors)[ Packagist](https://packagist.org/packages/prof/cors-helper)[ RSS](/packages/prof-cors-helper/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

..............HOW TO USE CORS-HELPER............. STEP 1:In the root folder of your file run this command composer require prof/cors-helper STEP 2:put this at the top of all your code | require **DIR**.'/vendor/autoload.php'; STEP 3: place this immediately after the above line | use CorsHelper\\CorsHelper; STEP 4: Call function like this CorsHelper::GrantRequest(); This is how the default set up look like,you did not need to do this below set up,am just showing you how the default set up look like. ......THIS IS THE DEFAULT SETUP...... CorsHelper::GrantRequest(\[ 'origin'=&gt;\['All origin'\], 'method'=&gt;\['POST','GET','DELETE','PUT','PATCH','OPTIONS'\], 'header'=&gt;\['X-Requested-With','token','Authorization','X-Auth-Token','Origin','Content-Type','Cache-Control','Pragma','Accept','Accept-Encoding'\], 'contentType'=&gt;'text/plain'; 'credentials'=&gt;true; 'maxAge'=&gt;72800, \]) .......FULL DEFAULT EXAMPLE...... require **DIR**.'/vendor/autoload.php'; use CorsHelper\\CorsHelper; CorsHelper::GrantRequest(); So simple cors is enable and you can start your work without any cors problem. NOTE:if you want to customize cors-helper,you can reset the above setup to your taste.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

6

Last Release

1826d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57763044?v=4)[Babatunde Joseph Oyetunde](/maintainers/jassy1995)[@jassy1995](https://github.com/jassy1995)

---

Top Contributors

[![jassy1995](https://avatars.githubusercontent.com/u/57763044?v=4)](https://github.com/jassy1995 "jassy1995 (11 commits)")

### Embed Badge

![Health badge](/badges/prof-cors-helper/health.svg)

```
[![Health](https://phpackages.com/badges/prof-cors-helper/health.svg)](https://phpackages.com/packages/prof-cors-helper)
```

###  Alternatives

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[sansec/magento2-module-shield

15218.6k](/packages/sansec-magento2-module-shield)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
