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(4y ago)061MITPHP

Since Jul 30Pushed 4y 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 today

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

1781d 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

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k38](/packages/paragonie-ecc)

PHPackages © 2026

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