forked from silarhi/php-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7688be9
commit ea7bcc4
Showing
1 changed file
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,29 @@ | ||
# php-hello-world | ||
A simple hello-world for composer | ||
|
||
[![Latest Stable Version](https://github.com/silarhi/php-hello-world/workflows/Tests/badge.svg)](https://github.com/silarhi/php-hello-world/workflows/Tests/badge.svg) | ||
[![Latest Stable Version](https://poser.pugx.org/silarhi/hello-world/v/stable)](https://packagist.org/packages/silarhi/hello-world) | ||
[![Total Downloads](https://poser.pugx.org/silarhi/hello-world/downloads)](https://packagist.org/packages/silarhi/hello-world) | ||
[![License](https://poser.pugx.org/silarhi/hello-world/license)](https://packagist.org/packages/silarhi/hello-world) | ||
|
||
|
||
[![SymfonyInsight](https://insight.symfony.com/projects/5d582202-1186-4ce7-82c7-c4d3a2c11807/big.svg)](https://insight.symfony.com/projects/5d582202-1186-4ce7-82c7-c4d3a2c11807) | ||
|
||
Installation | ||
------------ | ||
|
||
Install with composer | ||
Install Docker and Docker Compose | ||
``` bash | ||
composer require silarhi/hello-world | ||
sudo apt install docker | ||
``` | ||
|
||
Run composer update | ||
``` bash | ||
composer update silarhi/hello-world | ||
sudo apt install docker.io | ||
``` | ||
``` bash | ||
install docker-compose | ||
``` | ||
|
||
Usage | ||
----- | ||
|
||
``` php | ||
require_once __DIR__ . '/vendor/autoload.php'; | ||
Install Composer and use Docker Compose | ||
------------- | ||
|
||
use Silarhi\Hello; | ||
Install Composer | ||
``` bash | ||
composer Install | ||
``` | ||
|
||
$hello = new Hello(); | ||
echo $hello->display() . "\n"; | ||
Run docker-compose.yml | ||
``` bash | ||
docker-compose up -d | ||
``` |