{"id":21569321,"url":"https://github.com/mathieuimbert/slack-logger","last_synced_at":"2026-05-15T01:02:17.633Z","repository":{"id":62525016,"uuid":"70914260","full_name":"mathieuimbert/slack-logger","owner":"mathieuimbert","description":"This is a simple package that allow a PHP script to send real time logs to Slack.","archived":false,"fork":false,"pushed_at":"2017-04-01T15:48:04.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T18:55:41.965Z","etag":null,"topics":["logging","slack"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathieuimbert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-14T13:47:18.000Z","updated_at":"2018-05-11T17:11:02.000Z","dependencies_parsed_at":"2022-11-02T15:31:00.667Z","dependency_job_id":null,"html_url":"https://github.com/mathieuimbert/slack-logger","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mathieuimbert/slack-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathieuimbert%2Fslack-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathieuimbert%2Fslack-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathieuimbert%2Fslack-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathieuimbert%2Fslack-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathieuimbert","download_url":"https://codeload.github.com/mathieuimbert/slack-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathieuimbert%2Fslack-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33049594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logging","slack"],"created_at":"2024-11-24T11:09:09.318Z","updated_at":"2026-05-15T01:02:17.544Z","avatar_url":"https://github.com/mathieuimbert.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slack-logger\n\n### Packagist\n\n[![Latest Stable Version](https://poser.pugx.org/mathieuimbert/slack-logger/v/stable)](https://packagist.org/packages/mathieuimbert/slack-logger)\n[![Latest Unstable Version](https://poser.pugx.org/mathieuimbert/slack-logger/v/unstable)](https://packagist.org/packages/mathieuimbert/slack-logger)\n[![Total Downloads](https://poser.pugx.org/mathieuimbert/slack-logger/downloads)](https://packagist.org/packages/mathieuimbert/slack-logger)\n[![License](https://poser.pugx.org/mathieuimbert/slack-logger/license)](https://packagist.org/packages/mathieuimbert/slack-logger)\n\n### Unit Tests\n\n[![Build Status](https://travis-ci.org/mathieuimbert/slack-logger.svg?branch=master)](https://travis-ci.org/mathieuimbert/slack-logger)\n[![Coverage Status](https://coveralls.io/repos/github/mathieuimbert/slack-logger/badge.svg?branch=master)](https://coveralls.io/github/mathieuimbert/slack-logger?branch=master)\n\n### Code Quality\n\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/7c2c822d-857f-4b69-874d-d4e78b9d1e24/big.png)](https://insight.sensiolabs.com/projects/7c2c822d-857f-4b69-874d-d4e78b9d1e24)\n\n## Description\n\nThis is a simple package that allow a PHP script to send real time logs to Slack.\n\nPlease be aware that the repository is still in an early phase, and every new commit might not be backward compatible.\n\n## Installation\n\nInstallation of Slack Logger is done using [Composer](https://getcomposer.org/).\n\n```\ncomposer require mathieuimbert/slack-logger\n```\n\n## Usage ##\n\n- Create an [Incoming Webhook](https://my.slack.com/services/new/incoming-webhook/) for your slack account. Make sure to read the [full documentation](https://api.slack.com/incoming-webhooks)\n- Instantiate SlackLogger in your script, and start sending logs to Slack\n \n```php\n$logger = new \\MathieuImbert\\Slack\\Logger\\SlackLogger('https://hooks.slack.com/services/xxxxxxx/xxxxxxx/xxxxxxx');\n$logger-\u003ewarning('This a not test of the emergency broadcast system, this is the real thing');\n```\n\n### Options ###\n\nYou can customize the name and the icon of your logger in the incoming webhook configuration, or you can do it from SlackLogger by passing the right options to he constructor:\n\n```php\n$logger = new \\MathieuImbert\\SlackLogger\\SlackLogger(\n    'https://hooks.slack.com/services/xxxxxxx/xxxxxxx/xxxxxxx',\n    array('username' =\u003e 'My Slack Logger', 'icon_emoji' =\u003e ':cop:')\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieuimbert%2Fslack-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathieuimbert%2Fslack-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieuimbert%2Fslack-logger/lists"}