Skip to content

Commit

Permalink
switch to phar install
Browse files Browse the repository at this point in the history
  • Loading branch information
ofbeaton committed Aug 5, 2016
1 parent c49b994 commit 6c0aa36
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,21 @@ Optionally includes slave replication checks.
PHP 5.6+ console command that uses PDO to provide the database drivers:
- [x] MySQL

## Installing via Composer
## Installing via phar

The recommended way to install db-ping is through
[Composer](http://getcomposer.org).
Before proceeding, you need a working PHP 5.6+ installation.

```bash
# Install Composer
curl -sS https://getcomposer.org/installer | php
```
The recommended way to install db-ping is by downloading the phar.

Next, run the Composer command to install the latest stable version:
See [Releases](https://github.com/ofbeaton/db-ping/releases) for downloads.

```bash
composer.phar require ofbeaton/db-ping
```
Next, run the phar from the command line:

After installing, you can now use it from the command line:

```bash
vendor/bin/db-ping help
php db-ping.phar help

vendor/bin/db-ping mysql --pass=mysecretpassword
php db-ping.phar mysql --pass=mysecretpassword
```

## Support Me
Expand Down

0 comments on commit 6c0aa36

Please sign in to comment.