https://github.com/kherge-archive/php-go
A simple PHP build tool.
https://github.com/kherge-archive/php-go
Last synced: about 2 months ago
JSON representation
A simple PHP build tool.
- Host: GitHub
- URL: https://github.com/kherge-archive/php-go
- Owner: kherge-archive
- License: mit
- Archived: true
- Created: 2013-02-05T00:39:44.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-02-02T06:20:30.000Z (almost 12 years ago)
- Last Synced: 2025-09-05T19:14:25.622Z (4 months ago)
- Language: PHP
- Size: 580 KB
- Stars: 68
- Watchers: 0
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-php-cn - 官网
- awesome-php - Go - 一个简单的PHP构建工具 (构建工具( Build Tools ))
README
Go
==
[![Build Status]](http://travis-ci.org/herrera-io/php-go)
Go is a simple PHP build tool built on [Symfony Console][].
**Gofile**:
```php
writeln(
sprintf(
'Hello, %s%s',
$input->getArgument('name'),
$input->getOption('ending')
)
);
}
);
// add an argument to the task
arg('name', ARG_IS_OPTIONAL, 'Your name', 'world');
// add an option to the task
option('ending', 'e', OPT_IS_OPTIONAL, 'How to end', '!');
```
```sh
$ bin/go hello
Hello, world!
$ bin/go hello Kevin -e .
Hello, Kevin.
```
Documentation
-------------
- [Installing][]
- [Usage][]
[Build Status]: https://secure.travis-ci.org/herrera-io/php-go.png?branch=master
[Symfony Console]: http://symfony.com/doc/current/components/console/introduction.html
[Installing]: doc/00-Installing.md
[Usage]: doc/01-Usage.md