Skip to content

Commit

Permalink
[php] Update Codeigniter to v 4 (#7686)
Browse files Browse the repository at this point in the history
* [php] Update Codeigniter to v 4

* Add writable dir

* Change display name

* Add JIT in php-fpm
  • Loading branch information
joanhey authored Nov 16, 2022
1 parent b92eba2 commit 297d1e4
Show file tree
Hide file tree
Showing 114 changed files with 5,265 additions and 2,039 deletions.
1 change: 1 addition & 0 deletions frameworks/PHP/codeigniter/.env-dev
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CI_ENVIRONMENT = development
15 changes: 6 additions & 9 deletions frameworks/PHP/codeigniter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,29 @@ This is the Codeigniter PHP portion of a [benchmarking test suite](../) comparin
### JSON Encoding Test
Uses the PHP standard [JSON encoder](http://www.php.net/manual/en/function.json-encode.php).

* [JSON test controller](application/controllers/bench.php)
* [JSON test controller](app/Controllers/Bench.php)


### Data-Store/Database Mapping Test
Uses the db abstraction class from Codeigniter

* [DB test controller](application/controllers/bench.php)
* [DB test controller](app/Controllers/Bench.php)


## Infrastructure Software Versions
The tests were run with:

* [Codeigniter Version 3.1.11](http://ellislab.com/codeigniter)
* [PHP Version 7.4](http://www.php.net/) with FPM and APC
* [nginx 1.16.1](http://nginx.org/)
* [MySQL 8](https://dev.mysql.com/)
* [Codeigniter Version 4](https://www.codeigniter.com)

## Test URLs
### JSON Encoding Test

http://localhost/index.php/bench/json
http://localhost/json

### Data-Store/Database Mapping Test

http://localhost/index.php/bench/db
http://localhost/db

### Variable Query Test

http://localhost/index.php/bench/db/2
http://localhost/queries/2
6 changes: 6 additions & 0 deletions frameworks/PHP/codeigniter/app/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>
15 changes: 15 additions & 0 deletions frameworks/PHP/codeigniter/app/Common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

/**
* The goal of this file is to allow developers a location
* where they can overwrite core procedural functions and
* replace them with their own. This file is loaded during
* the bootstrap process and is called during the framework's
* execution.
*
* This can be looked at as a `master helper` file that is
* loaded early on, and may also contain additional functions
* that you'd like to use throughout your entire application
*
* @see: https://codeigniter4.github.io/CodeIgniter4/
*/
Loading

0 comments on commit 297d1e4

Please sign in to comment.