samsonasik/ci4-album
samsonasik/ci4-album has 94 GitHub stars and 21 forks. Star changes are not measured yet. Last checked 2026-11-14 12:51 UTC. Last push 2026-11-06.
측정된 스타 증가
- in 24h
- 기록 수집 중
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
🔥 CodeIgniter 4 example Album module uses Domain Driven Design Architecture with Tactical Pattern
데이터README.md
OriginalExample of CodeIgniter 4 Module : Album Module
Feature
- CRUD with
- Pagination, configurable via
Album\Config\Albumclass. - Search
- Layout
- Flash Message after add/edit/delete
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 [email protected]:samsonasik/ci4-album.git
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:
$psr4 = [
'App' => APPPATH, // To ensure filters, etc still found,
APP_NAMESPACE => APPPATH, // For custom namespace
'Config' => APPPATH . 'Config',
'Album' => APPPATH . 'ThirdParty/ci4-album/src', // <-- add this line
];
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.
# .env file
CI_ENVIRONMENT = development
app.baseURL = 'http://localhost:8080'
app.indexPage = ''
database.default.hostname = localhost
database.default.database = ci4_crud
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi
3. Run db migration
php spark migrate -n Album
4. Run db seed (Optional)
php spark db:seed "Album\Database\Seeds\AlbumSeeder"
php spark db:seed "Album\Database\Seeds\TrackSeeder"
5. Run development server:
php spark serve
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:
<?php namespace Config;
use CodeIgniter\Config\BaseConfig;
class Album extends BaseConfig
{
public $paginationPerPage = 10;
}
// app/Config/Album.php
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:
cd /path/to/modules/ci4-album
cp phpunit.xml.dist phpunit.xml
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.
<php>
<server name="app.baseURL" value="http://localhost:8080"/>
<const name="HOMEPATH" value="./"/>
<const name="CONFIGPATH" value="./vendor/codeigniter4/framework/app/Config/"/>
<const name="PUBLICPATH" value="./vendor/codeigniter4/framework/public/"/>
<env name="database.tests.hostname" value="localhost"/>
<env name="database.tests.database" value="ci4_crud_test"/>
<env name="database.tests.username" value="root"/>
<env name="database.tests.password" value=""/>
<env name="database.tests.DBDriver" value="MySQLi"/>
<env name="database.tests.DBPrefix" value=""/>
</php>
Ensure that you use different DB for
testing.
After it, install the codeigniter and phpunit dependency:
cd /path/to/modules/ci4-album && composer install
Lastly, run the test:
vendor/bin/phpunit
Contributing
Contributions are very welcome. Please read CONTRIBUTING.md
관련 프로젝트 살펴보기
Asabeneh/30-Days-Of-Python
30 Days of Python 프로그래밍 챌린지는 Python 프로그래밍 언어를 30일 동안 배우기 위한 단계별 가이드입니다. 이 챌린지는 100일 이상 걸릴 수 있습니다. 자신의 속도에 맞춰 진행하세요. 다음 동영상도 도움이 될 수 있습니다: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,728 스타grafana/grafana
개방적이고 조합 가능한 옵저버빌리티 및 데이터 시각화 플랫폼입니다. Prometheus, Loki, Elasticsearch, InfluxDB, Postgres 등 여러 소스의 메트릭, 로그, 트레이스를 시각화합니다.
77,898 스타redis/redis
실시간 데이터 기반 애플리케이션을 구축하는 개발자에게 Redis는 가장 선호되고, 가장 빠르며, 기능이 가장 풍부한 캐시, 데이터 구조 서버이자 문서 및 벡터 쿼리 엔진입니다.
77,491 스타apache/superset
Apache Superset는 데이터 시각화 및 데이터 탐색 플랫폼입니다.
75,522 스타