laventure/application

A simple PHP framework for building web application using mvc

dev-master 2024-04-05 05:07 UTC

This package is auto-updated.

Last update: 2024-05-05 17:55:20 UTC


README

laventure.png

Total Downloads Latest Stable Version License

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

  1. 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
  1. Create database via next command:
php laventure database:create
  1. Run migrations via next command :
php laventure migration:migrate
  1. Run local server via next command php laventure server:run
  1. List all available commands
php laventure

Run tests via

php laventure test:run or ./vendor/bin/phpunit tests