PHPackages                             forgestart/codeigniter4-cors - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. forgestart/codeigniter4-cors

ActiveProject[Utility &amp; Helpers](/categories/utility)

forgestart/codeigniter4-cors
============================

CodeIgniter4 (CORS) starter app

v4.4.8(1y ago)05MITPHPPHP ^7.4 || ^8.0

Since Aug 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ForgeStart/codeigniter4-cors)[ Packagist](https://packagist.org/packages/forgestart/codeigniter4-cors)[ Docs](https://codeigniter.com)[ Fund](https://www.buymeacoffee.com/komsdev)[ RSS](/packages/forgestart-codeigniter4-cors/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

CodeIgniter 4 Application Starter (CORS)
========================================

[](#codeigniter-4-application-starter-cors)

What is CodeIgniter?
--------------------

[](#what-is-codeigniter)

CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure. More information can be found at the [official site](https://codeigniter.com).

This repository holds a composer-installable app starter. It has been built from the [development repository](https://github.com/codeigniter4/CodeIgniter4).

More information about the plans for version 4 can be found in [CodeIgniter 4](https://forum.codeigniter.com/forumdisplay.php?fid=28) on the forums.

You can read the [user guide](https://codeigniter.com/user_guide/)corresponding to the latest version of the framework.

Example Fetch API

```
fetch('http://localhost:8080/api/example', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Accept': 'application/json',
    'Authorization': 'Bearer token',
  },
  body: JSON.stringify({
    // Your JSON data here
    key: 'value'
  })
})
.then(response => {
  if (!response.ok) {
    throw new Error('Network response was not ok');
  }
  return response.json();
})
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
```

Installation &amp; updates
--------------------------

[](#installation--updates)

`composer create-project forgestart/codeigniter4-cors` then `composer update` whenever there is a new release of the framework.

When updating, check the release notes to see if there are any changes you might need to apply to your `app` folder. The affected files can be copied or merged from `vendor/codeigniter4/framework/app`.

Setup
-----

[](#setup)

Copy `env` to `.env` and tailor for your app, specifically the baseURL and any database settings.

Important Change with index.php
-------------------------------

[](#important-change-with-indexphp)

`index.php` is no longer in the root of the project! It has been moved inside the *public* folder, for better security and separation of components.

This means that you should configure your web server to "point" to your project's *public* folder, and not to the project root. A better practice would be to configure a virtual host to point there. A poor practice would be to point your web server to the project root and expect to enter *public/...*, as the rest of your logic and the framework are exposed.

**Please** read the user guide for a better explanation of how CI4 works!

Repository Management
---------------------

[](#repository-management)

We use GitHub issues, in our main repository, to track **BUGS** and to track approved **DEVELOPMENT** work packages. We use our [forum](http://forum.codeigniter.com) to provide SUPPORT and to discuss FEATURE REQUESTS.

This repository is a "distribution" one, built by our release preparation script. Problems with it can be raised on our forum, or as issues in the main repository.

Server Requirements
-------------------

[](#server-requirements)

PHP version 7.4 or higher is required, with the following extensions installed:

- [intl](http://php.net/manual/en/intl.requirements.php)
- [mbstring](http://php.net/manual/en/mbstring.installation.php)

Warning

The end of life date for PHP 7.4 was November 28, 2022. The end of life date for PHP 8.0 was November 26, 2023. If you are still using PHP 7.4 or 8.0, you should upgrade immediately. The end of life date for PHP 8.1 will be November 25, 2024.

Additionally, make sure that the following extensions are enabled in your PHP:

- json (enabled by default - don't turn it off)
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php) if you plan to use MySQL
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\\CURLRequest library

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

719d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2337174?v=4)[komsan](/maintainers/komsan)[@komsan](https://github.com/komsan)

---

Top Contributors

[![nkomsan](https://avatars.githubusercontent.com/u/11172136?v=4)](https://github.com/nkomsan "nkomsan (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/forgestart-codeigniter4-cors/health.svg)

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

###  Alternatives

[codeigniter4/appstarter

CodeIgniter4 starter app

1811.8M](/packages/codeigniter4-appstarter)[abydahana/aksara

Aksara is a modern, developer-friendly framework and CMS built on CodeIgniter 4, featuring rapid CRUD development, modular architecture, smart routing, flexible access control, API integration, and an AI assistant to make content management faster and smarter.

1141.2k](/packages/abydahana-aksara)[hermawan/codeigniter4-datatables

Serverside Datatables library for CodeIgniter4

10949.8k4](/packages/hermawan-codeigniter4-datatables)[jason-napolitano/codeigniter4-cart-module

A basic port of the codeigniter 3 cart module for CodeIgniter 4.

5915.6k](/packages/jason-napolitano-codeigniter4-cart-module)[maniaba/asset-connect

AssetConnect is a file management library for CodeIgniter 4 that allows you to associate files with any entity in your application

1016.0k](/packages/maniaba-asset-connect)

PHPackages © 2026

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