code215/evofw 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

code215/evofw

Composer 安装命令:

composer create-project code215/evofw

包简介

EVO PHP Framework

README 文档

README

About

I created this framework when I started coding lcnlegacy.com to help me speed up development time.

Using evofw

Create a new config file

<?php
$config=array(
    'default' => array(
        'path'=>'inc/site/',
        'database'=>array(
            'default'=>array(
                'driver' => 'PDO Driver'
                'host'=>'localhost',
                'user'=>'username',
                'pass'=>'password',
                'name'=>'databasename', 
            ),
        ),
        'default_system' => 'site',  //this is the default class to call (site.php)      
        'autoLoadDB'=>true,
    )
);
?>  

Create your default page

<?php
include('path_to_evofw/src/system.php');
$site=new System('Path to config file');
//The following in how I personally load pages. Will take index.php?page=site&action=test and load the action_test() in site.php
$page=$site->getVaule('page');
$action=$site->getValue('action');
$site->load($page, $action)
?>

Examples

  • LoLStats - A site I built to display LoL data that I collect from LoLKing
  • LolStats2 - Upgraded version of LoLStats made to work with the new LoLKing layout

License

I am currently looking into which OS license I should put this under. Currently it's free to use as long as you don't sell the code.

Helping

No one is perfect and I am definitely far from it. If you see something you would like to fix please fork the code and send me a pull request.

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-04