Giter Club home page Giter Club logo

yaf-codes-generator's Introduction

Yaf Codes Generator

用于生成比较干净的yaf框架代码。

建议在 Linux、macOS下使用

Usage

生成目录

例如我要生成一个 Demo 项目代码,执行如下命令:

php yaf_cg Demo

将会在output目录下生成 Demo 目录

查看目录内容:

$ ls output/Demo/
application/  conf/  index.php  readme.txt

这样就可以用此目录开发具体的项目了。

运行项目

cd output/Demo
php -S localhost:8080 index.php

用浏览器打开 http://localhost:8080 即可, 出现 Hello World! I am PHPer 说明创建成功。 然后就可以把 Demo 目录用到实际项目中去使用了。

工具

开启namespace(推荐)

cd output/Demo
sh ../../open_namespace.sh

关闭namespace

cd output/Demo
sh ../../close_namespace.sh

扩展

如果想用比较全一点脚手架[含常用类库]来开发项目,可以参考:

https://github.com/qloog/yaf-skeleton

Enjoy it.

yaf-codes-generator's People

Contributors

qloog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.