pingu1/packaged-cilex 问题修复 & 功能扩展

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

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

pingu1/packaged-cilex

Composer 安装命令:

composer require pingu1/packaged-cilex

包简介

A packaged version of Cilex Framework with clean project architecture

README 文档

README

Cilex is a simple command line application framework to develop simple tools based on Symfony2 components. However, creating an application with Cilex requires to add your source code at the same level as the package source code, which is not really desirable when dealing with code updates. This version is embedding Cilex as a dependency in order to fully isolate your own code.

Installation

  1. Download composer: curl -s https://getcomposer.org/installer | php
  2. Create a new project based on this one composer.phar create-project pingu1/packaged-cilex test
  3. Init the Git repository in your new project git init

Usage

  • Put your code in the src/command/ folder
  • Add additional directories as needed (src/model/, src/helper/, src/library/ ...)
  • Add your scripts to the cilex entry point (located at the root of the project)
$app->command(new \app\command\YourNamespaceHere());
  • Run the script
./cilex hello
./cilex hello -h
./cilex hello renaud
./cilex hello renaud -y
./cilex hello renaud --yell

Bonus

You can easily update the composer.json file to give another namespace than app to the application by updating the autoloader as follows:

"autoload": {
    "psr-4": {
        "YOUR_APP_NAME_HERE\\": "src/"
    }
}

Help and docs

This repository is just a wrapper of the Cilex project, for additional question regarding how to use Cilex, please check the Cilex project

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固