Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
benemohamed committed May 2, 2019
1 parent 5d8172a commit 382a9f3
Showing 1 changed file with 44 additions and 3 deletions.
47 changes: 44 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,50 @@ To enable all the data fields and additional request volumes see [https://ipfind

Visit [IPFinder documentation](https://ipfinder.io/docs).

## System Requirements & Installation
## System Requirements
- PHP >= 7.0
- JSON PHP Extension
- CURL PHP Extension
- [official PHP library for IPfinder](https://github.com/ipfinder-io/ip-finder-php).

## Installation
### Via composer
First, download the IPfinder cli using Composer:
```php
composer global require ipfinder-io/ip-finder-cli
```
Make sure to place composer's system-wide vendor bin directory in your `$PATH` so the laravel executable can be located by your system. This directory exists in different locations based on your operating system; however, some common locations include:
- macOS: `$HOME/.composer/vendor/bin`
- GNU / Linux Distributions: `$HOME/.config/composer/vendor/bin`
- Windows: `%USERPROFILE%\AppData\Roaming\Composer\vendor\bin`
### Linux Distributions / macOS
download the IPfinder cli using from github using curl
```bash
## using curl
$ curl -LO https://github.com/ipfinder-io/ip-finder-cli/releases/download/v1.0.0/ipfinder.phar
## using wget
$ wget https://github.com/ipfinder-io/ip-finder-cli/releases/download/v1.0.0/ipfinder.phar
$ chmod +x ipfinder.phar
$ sudo mv ipfinder.phar /usr/bin/ipfinder
$ ipfinder -h
```
## Windows
1. Download [IPFINDER PHAR](https://github.com/ipfinder-io/ip-finder-cli/releases/download/v1.0.0/ipfinder.phar) from github
2. Create a directory for PHP binaries; e.g., `C:\bin`
3. Open a command line (e.g., press **Windows+R** » type `cmd` » ENTER)
4. Create a wrapping batch script (results in `C:\bin\ipfinder.cmd`):
```bash
C:\Users\username> cd C:\bin
C:\bin> echo @php "%~dp0ipfinder.phar" %* > ipfinder.cmd
C:\bin> exit
```
5. Open a new command line and confirm that you can execute PHPUnit from any path:
```bash
C:\Users\username> ipfinder --help
````

## License

## Support
## License
Licensed under the [Apache-2.0](https://github.com/ipfinder-io/ip-finder-cli/blob/master/LICENSE).
## Support
Contact Us With Additional Questions About Our API, if you would like more information about our API that isn’t available in our IP geolocation API developer documentation, simply [contact](https://ipfinder.io/contact) us at any time and we’ll be able to help you find what you need..

0 comments on commit 382a9f3

Please sign in to comment.