https://github.com/opensourcedoc/php-cli-boilerplate
PHP Command-Line Program Boilerplate
https://github.com/opensourcedoc/php-cli-boilerplate
Last synced: over 1 year ago
JSON representation
PHP Command-Line Program Boilerplate
- Host: GitHub
- URL: https://github.com/opensourcedoc/php-cli-boilerplate
- Owner: opensourcedoc
- License: mit
- Created: 2022-08-01T00:48:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-01T00:50:02.000Z (almost 4 years ago)
- Last Synced: 2025-01-09T02:34:05.860Z (over 1 year ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP CLI Boilerplate
A demonstrative PHP project to wrap a tiny PHP script with both Batch script and Bourne shell script.
## System Requirements
* PHP 7+
## Usage
### Run the PHP Script on Windows
```shell
> git clone https://github.com/opensourcedoc/php-cli-boilerplate.git myapp
> cd myapp
> .\bin\cli.bat
Hello World
```
### Run the PHP Script on Unix
```shell
$ git clone https://github.com/opensourcedoc/php-cli-boilerplate.git myapp
$ cd myapp
$ ./bin/cli
Hello World
```
## Copyright
Copyright (c) 2022 Michelle Chen. Licensed under MIT