laventure / application
A simple PHP framework for building web application using mvc
dev-master
2024-04-05 05:07 UTC
Requires
- php: >= 8.1
- ext-curl: *
- ext-fileinfo: *
- ext-pdo: *
- laventure/framework: dev-master
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.5
- spatie/phpunit-watcher: ^1.23
- squizlabs/php_codesniffer: ^3.8
- symfony/var-dumper: ^6.4
This package is auto-updated.
Last update: 2024-05-05 17:55:20 UTC
README
About
Laventure is a web application framework using architecture mvc with simple implementation.
Related core package: https://github.com/jeandev84/laventure-framework
Prerequisites
- PHP >= 8.1
Installation
composer require laventure/application
Usage
- Make new file
.env
and configure
### APPLICATION ###
APP_NAME=Laventure
APP_ENV=dev
APP_URL=http://localhost:8000
APP_SECRET=db5771cb3fc2c84749f103f819d9402c
APP_DEBUG=true
### DATABASE ###
DB_TYPE=YOUR_DRIVER
DB_HOST=YOUR_HOST
DB_PORT=YOUR_PORT
DB_NAME=YOUR_DATABASE
DB_USER=YOUR_USERNAME
DB_PASS=YOUR_PASSWORD
- Create database via next command:
php laventure database:create
- Run migrations via next command :
php laventure migration:migrate
- Run local server via next command
php laventure server:run
- Server will be listened on the port :8000
- Open to your browser next link http://localhost:8000
- List all available commands
php laventure
Run tests via
php laventure test:run or ./vendor/bin/phpunit tests