Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[php] Update Codeigniter to v 4 #7686

Merged
merged 4 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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