neznaika0 / codeigniter-expenses
CodeIgniter Expenses
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 2
Open Issues: 0
Type:project
Requires
- php: ^8.1
- codeigniter4/framework: ^4.5.2
- codeigniter4/translations: ^4.5.1
- twbs/bootstrap: 5.3.1
Requires (Dev)
- codeigniter/coding-standard: ^1.7.16
- fakerphp/faker: ^1.23.1
- friendsofphp/php-cs-fixer: ^3.58.1
- mikey179/vfsstream: ^1.6.11
- phpunit/phpunit: ^9.6.19
README
Project for an example of CodeIgniter 4
Created specifically to show some development techniques. You can study the code to understand "how does it work?". Probably a basic tutorial will appear later.
Functional
- Show home page
- Authentication for one administrator
- Logout
- Navigate per pages in the list
- Creating an expense record
- Deleting an expense record
- View monthly expense statistics
- Translation (en, ru)
- Bootstrap 5 template
- and other framework features
Installation
-
Clone the repository.
-
Install dependencies
-
Create a database.
-
Configure the file
.env
by sampleenv_expenses
. Uncomment the necessary settings.You need to create a password hash. To do this, run:
php -r "echo password_hash('YOUR_PASSWORD', PASSWORD_BCRYPT) . PHP_EOL;"
Default password: 123456
-
Publish assets:
php spark publish
-
Run migrations and fill tables:
php spark migrate php spark db:seed ExpenseSeeder
-
Start server:
php spark serve
For detailed configuration, see the manual https://codeigniter4.github.io/userguide/installation/index.html