Skip to content

Commit

Permalink
Added usage without composer to the readme, closes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
lux authored Mar 30, 2020
1 parent a65640d commit 4ad01a7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ Analog::log ('The sky is falling!', Analog::ALERT);
Analog::log ('Debugging info', Analog::DEBUG);
```

### Usage without composer

Analog uses a simple autoloader internally, so if you don't have access to [composer](https://getcomposer.org/) you can clone this repository and include it like this:

```php
<?php

require 'analog/lib/Analog.php';

Analog::handler (Analog\Handler\Stderr::init ());

Analog::log ('Output to php://stderr');
```

For more examples, see the [examples](https://github.com/jbroadway/analog/tree/master/examples) folder.

## Logging Options
Expand Down

0 comments on commit 4ad01a7

Please sign in to comment.