Просмотр исходного кода

More explicit code type declaration & include autoload

pull/7/head
Borewit 6 лет назад
Родитель
Сommit
771c9c04dd
1 измененных файлов: 8 добавлений и 4 удалений
  1. +8
    -4
      README.md

+ 8
- 4
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
<?php

$logchecker = new OrpheusNET\Logchecker\Logchecker();
@@ -90,7 +90,11 @@ $ composer require orpheusnet/logchecker
```

### Usage
```
```php
<?php

require __DIR__ . '/vendor/autoload.php';

use OrpheusNET\Logchecker\Logchecker;

$logchecker = new Logchecker();
@@ -109,7 +113,7 @@ 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


Загрузка…
Отмена
Сохранить