Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abenevaut/yaf-cms


https://github.com/abenevaut/yaf-cms

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

# Yet another YAF framework

## Description

This is a simple YAF framework to start a new project.

## Setup PHP YAF extension
```
[yaf]
;
; https://www.php.net/manual/fr/yaf.configuration.php
;
yaf.use_spl_autoload=On
yaf.cache_config=
yaf.use_namespace=On
yaf.environ=
```

## Setup Http server
See example at https://www.php.net/manual/en/class.yaf-router.php

## Setup the framework
```
cp app.ini.example app.ini
composer install
```

### Setup the database

Note that you can have multiple database connections.
The main one should be named `default`.

#### MySQL
```
database..driver = "mysql"
database..host = ""
database..database = ""
database..username = ""
database..password = ""
```

#### SQLite
```
// could be "default" or "whatever"
database..driver = "mysql"
database..database = ""
```

## Command line interface

Convenient commands to help you in terminal.
Wink to @laravel

### Commands list
```
php artisan migrate
php artisan db:seed
```

## Testing
```
vendor/bin/phpunit
```