Download the PHP package takuya-motoshima/codeigniter-extension without Composer
On this page you can find all versions of the php package takuya-motoshima/codeigniter-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download takuya-motoshima/codeigniter-extension
More information about takuya-motoshima/codeigniter-extension
Files in takuya-motoshima/codeigniter-extension
Package codeigniter-extension
Short Description Extend CodeIgniter for ease of use
License MIT
Rated 5.00 based on 5 reviews
Informations about the package codeigniter-extension
CodeIgniter Extension
Supercharge your CodeIgniter 3 workflow.
Extended controllers, models, utilities, and AWS integrations — all in one package.
API Docs
Why CodeIgniter Extension?
CodeIgniter 3 is fast and lightweight — but it lacks modern conveniences. This package fills the gaps without compromising simplicity.
| What you get | |
|---|---|
| Controllers | JSON / HTML / Twig responses, CORS, annotation-based access control |
| Models | Fluent query builder, INSERT ... ON DUPLICATE KEY UPDATE, helper methods |
| Utilities | Image/video processing, encryption, CSV, REST client, validation, logging |
| AWS | Rekognition (face detection & comparison), SES (email delivery) |
| Scaffold | One command to create a fully working app with auth, dashboard & frontend |
Quick Start
Set up permissions and web server:
Import the database and build assets:
Open http://{your-server-ip}:3000/ — default credentials: [email protected] / password
Usage
Controller
Model
Utilities
Twig Templates
Session variables are automatically available:
API at a Glance
Controller Methods
| Method | Description | |--------|-------------| | `json()` | Send JSON response | | `view($template)` | Render Twig template | | `html($html)` | Send HTML response | | `text($text)` | Send plain text response | | `image($path)` | Send image response | | `download($filename, $content)` | Force file download | | `set($key, $value)` | Set response data | | `setCorsHeader($origin)` | Set CORS headers |Model Methods
| Method | Description | |--------|-------------| | `get_all()` | Get all records | | `get_by_id($id)` | Get record by ID | | `count_by_id($id)` | Count records by ID | | `exists_by_id($id)` | Check if record exists | | `insert_on_duplicate_update()` | Upsert single record | | `insert_on_duplicate_update_batch()` | Batch upsert |Utility Classes
| Class | Key Methods | |-------|-------------| | `ImageHelper` | `resize()`, `crop()`, `writeDataURLToFile()`, `pdf2Image()` | | `FileHelper` | `makeDirectory()`, `delete()`, `copyFile()`, `move()` | | `Cipher` | `encrypt()`, `decrypt()`, `encode_sha256()` | | `RestClient` | `get()`, `post()`, `put()`, `delete()` | | `Logger` | `debug()`, `info()`, `error()`, `display()` | | `Validation` | `hostname()`, `ipaddress()`, `email()`, `is_path()` | | `IpUtils` | `isIPv4()`, `isIPv6()`, `inRange()` | | `Template` | `load($template, $params)` |Configuration
Recommended config.php settings
| Setting | Default | Recommended | |---------|---------|-------------| | `base_url` | *empty* | Dynamic: `'//' . $_SERVER['HTTP_HOST'] . ...` | | `enable_hooks` | `FALSE` | `TRUE` | | `permitted_uri_chars` | `a-z 0-9~%.:_\-` | `a-z 0-9~%.:_\-,` | | `sess_save_path` | `NULL` | `APPPATH . 'session'` | | `cookie_httponly` | `FALSE` | `TRUE` | | `composer_autoload` | `FALSE` | `realpath(APPPATH . '../vendor/autoload.php')` | | `index_page` | `index.php` | *empty* |Access Control (hooks.php)
Database Session Driver
PHP 7.0+ compatible session handler with custom column support: Implements `updateTimestamp()` to prevent `Failed to write session data` warnings.Requirements
- PHP 7.3+
- Composer
- Extensions: php-gd, php-mbstring, php-xml, php-imagick (optional)
ImageMagick Installation
Required for `extractFirstFrameOfGif()` in `\X\Util\ImageHelper`. **Amazon Linux 2:** **Amazon Linux 2023:**Architecture
Testing
Documentation
- API Reference
- Demo Application
- Changelog
- CodeIgniter 3 User Guide
Troubleshooting
| Problem | Solution |
|---|---|
| "Failed to write session data" warning | Use $config['sess_driver'] = 'database' — the included SessionDatabaseDriver handles PHP 7.0+ compatibility |
| Imagick extension not found | Install ImageMagick + php-imagick (see Requirements) |
@Access annotations ignored |
Enable hooks: $config['enable_hooks'] = TRUE and configure hooks.php |
| Twig templates not updating | Clear cache: rm -rf application/cache/templates/* |
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Author
shumatsumonobu — GitHub / Twitter / Facebook
License
MIT
All versions of codeigniter-extension with dependencies
codeigniter/framework Version 3.1.*
twig/twig Version 2.*
hybridauth/hybridauth Version 2.*
aws/aws-sdk-php Version ^3.64
doctrine/common Version ^2.10
intervention/image Version ^2.5
vlucas/phpdotenv Version ^5.3
mathieuviossat/arraytotexttable Version ^1.0
ext-openssl Version *