定制 arakash92/webdev 二次开发

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

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

arakash92/webdev

Composer 安装命令:

composer create-project arakash92/webdev

包简介

Command-line tool for managing your local web development projects on Windows or Linux.

README 文档

README

webdev is a CLI tool written in PHP that automates much of the ground-work your your web development projects require - so you can get to work asap.

Imagine typing a single command like and having the following done in milliseconds:

  1. Creates a directory like /var/www/new-site or C:\wamp64\www\new-site or D:/websites/new-site
  2. Creates an appropriate configuration for your web server (virtualhost directives for apache etc)
  3. Adds these lines to your hosts file:
    • 127.0.0.1 new-site.dev
    • 127.0.0.1 www.new-site.dev
  4. Creates a database on your MySQL Server
  5. Perhaps creates a folder for your non-code stuff /home/John/Dropbox/Projects/new-site.

Changelog

October 19th, 2017

  • Can now use webdev config to list entire config.

here's how it looks to both set it up and create your first site

Requirements

  • Composer
  • Your composer vendor directory in your PATH

Install & Use

Before you use it, remember that this tool is in alpha and isn't TDD'ed or anything. Don't blame me if you accidentally delete your projects!

Grab it via packagist.org:

composer global require "arakash92/webdev=dev-master"

The first time you run it, it should automatically do the init command, which is interactively sets up webdev in your particular environment.

Commands

legend:

[abc] Argument
[abc?] Optional argument
webdev config [key] [value?]

Configure webdev by getting or setting values.

Examples:

  • webdev config web.providers.wamp.web_root C:/wamp/www sets the web root directory where your new projects will be created when using the "apache" web server.
  • webdev config database.default tells you the current value of the default database provider.
  • webdev config web prints the value of all the keys and values in that array (If it is an array. In this case, it is).
  • webdev config mysql.username "root" sets the mysql username
webdev create

Create a new website

About & Contributing

It's written in PHP, built on Composer and leverages Symfony/Console as well as Illuminate/Config. The configuration is stored as a PHP array in the installation directory (composers's global vendor dir).

feel free to send a pull request. It would be nice to clean up the code a bit, add support for more things and make better abstractions and maybe also support a more modular approach.

Licens

MIT. See LICENSE file.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固