Mini framework para facilitar a vida na criação de projetos.

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Language:JavaScript

v1.0.7 2019-12-20 14:05 UTC

This package is auto-updated.

Last update: 2024-04-16 23:12:23 UTC


README

Mini framework para facilitar a vida na criação de projetos.

Stars Forks Tag Issues Total Downloads Latest Stable Version License

INSTALL

Projeto
$ composer create-project --prefer-dist worldvisual/easy SEU_PROJETO
$ cd SEU_PROJETO
$ composer dump-autoload -o

GET STARTED

// DIR -> (app/config.inc.php)

/**
 * DATABASE CONNECTION
 */

 'hostname' => 'localhost',
 'username' => 'root',
 'password' => '',
 'database' => 'easy',

 /**
 * SITENAME
 * -- host:  yoursite.com.br or yoursite.com.br/sub
 * -- local: localhost or localhost/sub
 */

 'sitename' => 'localhost',

 /**
 * PROTOCOL
 * http://
 * https://
 */

 'protocol' => 'http://',

 /**
 * THEME AND RESOURCES
 */

 'themedir' => 'default',
 'template' => 'default',
 'resource' => 'default'

ROUTES

Você pode definir suas rotas em (routes/web.php) para mais informações você pode consultar em NEZAMY - GIT

VIEWS

use em( public/themes/SEU_TEMA) | definido em config.inc

LAYOUT

use em (public/__templates/SEU_TEMPLATE) | definido em config.inc

USING

- Listar todos os registro de uma determinada tabela
$query->selectAll('table');
- Listar registro com alguma condição
$query->selectWhere('table', 'id=1');
- O retorno da lista não se repete (DISTINCT)
$query->selectWhere('column1, column2', 'table', 'id=1');
- Retorno por id
$query->selectById('table', '1');
- Inserir Informações No Banco
$query->Query('table', $array, 'insert');
- Atualizar informações do banco
$query->Query('table', $array, 'update', 'id=1');