PHPackages                             samsonasik/ci4-album - 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. [Database &amp; ORM](/categories/database)
4. /
5. samsonasik/ci4-album

ActiveLibrary[Database &amp; ORM](/categories/database)

samsonasik/ci4-album
====================

An Example of CodeIgniter 4 Album module

1.18.0(5d ago)9525821MITPHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Mar 6Pushed 5d ago7 watchersCompare

[ Source](https://github.com/samsonasik/ci4-album)[ Packagist](https://packagist.org/packages/samsonasik/ci4-album)[ Docs](https://github.com/samsonasik/ci4-album)[ GitHub Sponsors](https://github.com/samsonasik)[ RSS](/packages/samsonasik-ci4-album/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (11)Versions (50)Used By (0)

Example of CodeIgniter 4 Module : Album Module
==============================================

[](#example-of-codeigniter-4-module--album-module)

[![Latest Version](https://camo.githubusercontent.com/9d4e18bab0bdce0e9cbfd2f228ced58e13dbe97e29398fd849b866578b247135/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73616d736f6e6173696b2f6369342d616c62756d2e7376673f7374796c653d666c61742d737175617265)](https://github.com/samsonasik/ci4-album/releases)[![ci build](https://github.com/samsonasik/ci4-album/workflows/ci%20build/badge.svg)](https://github.com/samsonasik/ci4-album/workflows/ci%20build/badge.svg)[![Mutation testing badge](https://camo.githubusercontent.com/6ad746fbd04495fa487210ca272a0ac75fdc92703d2afbc839cb6bd4673ff765/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324673616d736f6e6173696b2532466369342d616c62756d2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/samsonasik/ci4-album/master)[![Code Coverage](https://camo.githubusercontent.com/70a77c37f7d03f1fb9975de4abaabf70fe73938ef1abf221be6b28af0d673506/68747470733a2f2f636f6465636f762e696f2f67682f73616d736f6e6173696b2f6369342d616c62756d2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/samsonasik/ci4-album)[![PHPStan](https://camo.githubusercontent.com/fdcdf50c27377a0f41a7196eeaae8539c4684bfc8a1f9843fdac60fdbc53deab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374796c652d6c6576656c2532306d61782d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265266c6162656c3d7068707374616e)](https://github.com/phpstan/phpstan)[![Downloads](https://camo.githubusercontent.com/76d06be8ceec5da4c1c15af92b63fac9162112118dbfe34aae6190f296c20232/68747470733a2f2f706f7365722e707567782e6f72672f73616d736f6e6173696b2f6369342d616c62756d2f646f776e6c6f616473)](https://packagist.org/packages/samsonasik/ci4-album)

Feature
-------

[](#feature)

- CRUD with
    - [Domain Driven Design Architecture](https://en.wikipedia.org/wiki/Domain-driven_design) with [Tactical Pattern](http://gorodinski.com/blog/2012/04/25/read-models-as-a-tactical-pattern-in-domain-driven-design-ddd/)
    - [Post/Redirect/Get pattern](https://en.wikipedia.org/wiki/Post/Redirect/Get)
- Pagination, configurable via [`Album\Config\Album`](#settings) class.
- Search
- Layout
- Flash Message after add/edit/delete

Installation
------------

[](#installation)

**1.** Get The Module

**a.** require via composer

```
composer require samsonasik/ci4-album
```

**OR**

**b.** manually, by go to `app/ThirdParty` directory in project root, and clone this repository to the `app/ThirdParty` directory:

```
cd app/ThirdParty
git clone git@github.com:samsonasik/ci4-album.git
```

> see  for common clone issue troubleshooting.

then register "Album" to `App/Config/Autoload.php`'s psr4 property:

```
		$psr4 = [
			'App'         => APPPATH,                // To ensure filters, etc still found,
			APP_NAMESPACE => APPPATH,                // For custom namespace
			'Config'      => APPPATH . 'Config',
			'Album'       => APPPATH . 'ThirdParty/ci4-album/src', //
