PHPackages                             zalora/punyan - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. zalora/punyan

AbandonedArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

zalora/punyan
=============

PHP implementation of Bunyan

1.0.1(9y ago)520.8k—10%2MITPHPPHP &gt;= 7.0

Since Jan 15Pushed 9y ago50 watchersCompare

[ Source](https://github.com/zalora/punyan)[ Packagist](https://packagist.org/packages/zalora/punyan)[ Docs](https://github.com/zalora/punyan)[ RSS](/packages/zalora-punyan/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (17)Used By (2)

Punyan [![Build Status](https://camo.githubusercontent.com/a8d92216d857543a8bdcaf88df4363c563f0999d4258aa3f14ff32c1ad696a69/68747470733a2f2f7472617669732d63692e6f72672f7a616c6f72612f70756e79616e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/zalora/punyan) [![Test Coverage](https://camo.githubusercontent.com/8b57a0dba18247f9ae4cfcc5d5f6a67418732ba7ee6066ce6a9ec2cb371dd52a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7a616c6f72612f70756e79616e2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/zalora/punyan/coverage) [![Code Climate](https://camo.githubusercontent.com/cace83a8d7d4ef6f3742857d4fa39020a0e3cc0d012c84074691fc7793b3c663/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7a616c6f72612f70756e79616e2f6261646765732f6770612e737667)](https://codeclimate.com/github/zalora/punyan)
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#punyan---)

Punyan is the PHP implementation of the [Bunyan Logger](https://github.com/trentm/node-bunyan) originally written for node.js

Requirements
------------

[](#requirements)

- Linux / OS X (Maybe someone with Windows wants to try?)
- PHP 7.x
- Composer
- NPM

Installation
------------

[](#installation)

`$ composer require zalora/punyan`

tl;dr logger to go
------------------

[](#tldr-logger-to-go)

```
{
  "writers": [
    {
      "stream": {
        "url": "/tmp/myproject.log",
        "filters": [{ "priority": { "priority": "info" } }]
      }
    }
  ]
}
```

```
$config = [
    'writers' => [
        ['stream' => [
            'url' => '/tmp/myproject.log',
            'filters' => [
                ['priority' => ['priority' => 'info']]
            ]
        ]]
    ]
];
```

```
