Download the PHP package samsonasik/ci4-album without Composer
On this page you can find all versions of the php package samsonasik/ci4-album. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download samsonasik/ci4-album
More information about samsonasik/ci4-album
Files in samsonasik/ci4-album
Package ci4-album
Short Description An Example of CodeIgniter 4 Album module
License MIT
Homepage https://github.com/samsonasik/ci4-album
Informations about the package ci4-album
Example of CodeIgniter 4 Module : Album Module
Feature
- [x] CRUD with
- [x] Pagination, configurable via
Album\Config\Album
class. - [x] Search
- [x] Layout
- [x] Flash Message after add/edit/delete
Installation
1. Get The Module
a. require via composer
OR
b. manually, by go to app/ThirdParty
directory in project root, and clone this repository to the app/ThirdParty
directory:
see https://help.github.com/en/github/authenticating-to-github/error-permission-denied-publickey# for common clone issue troubleshooting.
then register "Album" to App/Config/Autoload.php
's psr4 property:
2. Set CI_ENVIRONMENT, base url, index page, and database config in your .env
file based on your existing database (If you don't have a .env
file, you can copy first from env
file: cp env .env
first). If the database not exists, create database first.
3. Run db migration
4. Run db seed (Optional)
5. Run development server:
6. Open in browser http://localhost:8080/album
Settings
Configure pagination per-page, by copy src/Config/Album.php
file into app/Config
directory, and modify the namespace to Config
:
In above class, the paginationPerPage
property's value can be changed.
Testing
On very first run, you need to create database, and migration for testing purpose with set phpunit.xml
file from phpunit.xml.dist
:
and then configure the phpunit.xml
to ensure it has a match db configuration with your local dev environment. If the database not exists, create database first.
Ensure that you use different DB for
testing
.
After it, install the codeigniter and phpunit dependency:
Lastly, run the test:
`
Contributing
Contributions are very welcome. Please read CONTRIBUTING.md