From fb05ef7b260a029f3eacbfa1049e58ff4f1ec2f5 Mon Sep 17 00:00:00 2001 From: Borewit Date: Wed, 2 Jan 2019 18:09:53 +0100 Subject: [PATCH] README: fix compile command using relative path (#7) * Fix compile command using relative path * Fix example using namespace * More explicit code type declaration & include autoload --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bc85e08..c96e869 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ file. Download this file, and then it can executed via CLI by running `php logch Alternatively, if you `chmod +x logchecker.phar`, it can be executed directly by doing `./logchecker.phar`. To install it globally, run: -``` +```bash mv logchecker.phar /usr/local/bin/logchecker chmod +x /usr/local/bin/logchecker ``` @@ -75,7 +75,7 @@ Details : ``` ### Code -``` +```php new_file('/path/to/log/file'); @@ -109,9 +113,9 @@ print("\nLog Text:\n{$log_text}"); To build your own phar, you can checkout this repository, and then run the `bin/compile` script. To do this, run the following commands: -``` +```bash git clone https://github.com/OPSnet/Logchecker cd Logchecker composer install -php -d phar.readonly=0 /bin/compile +php -d phar.readonly=0 bin/compile ``` \ No newline at end of file