定制 magnxpyr/phalcon-webtools 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

magnxpyr/phalcon-webtools

Composer 安装命令:

composer require magnxpyr/phalcon-webtools

包简介

A more flexible alternative to Phalcon Web Tools provided as a stand alone application. Generates Bootstrap 3 pages.

README 文档

README

This is a more flexible alternative to Phalcon Web Tools provided as a stand alone application.

It can be used as a module as long you set up everything.

travis badge Software License

Installation

Via Composer Create-Project

Run this in your terminal to get the latest Composer version:

curl -sS https://getcomposer.org/installer | php

Or if you don't have curl:

php -r "readfile('https://getcomposer.org/installer');" | php

This installer script will simply check some php.ini settings, warn you if they are set incorrectly, and then download the latest composer.phar in the current directory

Then run

php composer.phar create-project magnxpyr/phalcon-webtools -s dev

If you have already installed composer

composer create-project magnxpyr/phalcon-webtools -s dev

Via Composer json file

Create a composer.json file as follows:

{  
    "require": {  
        "magnxpyr/phalcon-webtools": "dev-master"  
    }  
}

Run the composer installer:

php composer.phar install

or

composer install

Installing via GitHub

Just clone the repository:

git clone git@github.com:magnxpyr/phalcon-webtools.git

Set up environment settings

Set up your environment settings in 'app/config/config.php':

  • set your database details on 'database'
  • set your base url on 'application > baseUri'
  • set tools config
'tools' => array(
        'copyright' => "", // copyright header for generated files; default empty
        'modulesPath' => '', // path to your modules/app directory; mandatory
        'migrationsPath' => '', // path to migrations directory; mandatory
        'viewsDir' => '', // default Views
        'modulesDir' => '', // default Modules
        'controllersDir' => '', // default Controllers
        'formsDir' => '', // default Forms
        'allow' => '', // IP, default only 127.0.0.1
        'baseController' => [], // default Phalcon\Mvc\Controller
        'baseModel' => [], // default Phalcon\Mvc\Model
        'baseForm' => [], // default Phalcon\Mvc\Model
        'baseModule' => '', // default empty
        'baseRoute' => '' // default empty
    )

Define only what you need and remove/comment the rest.

If you're fine with the default configuration, define only 'modulesPath' and 'migrationsPath'

Requirements

To run this application, you need at least:

  • = PHP 5.4

  • Phalcon 2.0.x
  • Apache Web Server with mod rewrite enabled

Third Party

Screenshot

Controller Page

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-23