{"id":20827684,"url":"https://github.com/peridot-php/peridot-yo-plugin","last_synced_at":"2026-04-29T03:06:30.042Z","repository":{"id":22213278,"uuid":"25545978","full_name":"peridot-php/peridot-yo-plugin","owner":"peridot-php","description":"Notify the right people when tests pass or fail via the world's simplest messaging platform - Yo","archived":false,"fork":false,"pushed_at":"2018-09-05T14:54:30.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-30T11:21:12.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://peridot-php.github.io/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peridot-php.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":"2014-10-21T21:04:49.000Z","updated_at":"2018-09-05T14:54:32.000Z","dependencies_parsed_at":"2022-08-20T08:00:50.688Z","dependency_job_id":null,"html_url":"https://github.com/peridot-php/peridot-yo-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/peridot-php/peridot-yo-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peridot-php%2Fperidot-yo-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peridot-php%2Fperidot-yo-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peridot-php%2Fperidot-yo-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peridot-php%2Fperidot-yo-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peridot-php","download_url":"https://codeload.github.com/peridot-php/peridot-yo-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peridot-php%2Fperidot-yo-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32408452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T02:37:21.628Z","status":"ssl_error","status_checked_at":"2026-04-29T02:36:50.947Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-17T23:12:45.403Z","updated_at":"2026-04-29T03:06:30.009Z","avatar_url":"https://github.com/peridot-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Peridot Yo Plugin\n=================\n\n[![Build Status](https://travis-ci.org/peridot-php/peridot-yo-plugin.png)](https://travis-ci.org/peridot-php/peridot-yo-plugin)\n\nNotify the right people when tests pass or fail, via the world's simplest messaging service [Yo](http://www.justyo.co/)\n\nThis is a plugin for PHP's event driven testing framework [Peridot](http://peridot-php.github.io/)\n\n## Usage\n\nWe recommend adding this plugin to your project via composer:\n\n```\n$ composer require --dev peridot-php/peridot-yo-plugin:~1.0\n```\n\nUsing the plugin is easy via your [peridot.php](http://peridot-php.github.io/#plugins) file:\n\n```php\n\u003c?php\nuse Evenement\\EventEmitterInterface;\nuse Peridot\\Plugin\\Yo\\YoPlugin;\n\nreturn function (EventEmitterInterface $emitter) {\n    /**\n     * Register by passing the peridot event emitter,\n     * a yo api token obtained from http://dev.justyo.co/,\n     * an an array of users to be Yo'ed,\n     * and an optional string or function that returns a link string\n     */\n    $plugin = YoPlugin::register($emitter, \"your-yo-token\", ['USER1', 'USER2'], 'http://linktobuild.com');\n};\n```\n\n## Behaviors\nThis plugin has a few behaviors so you can configure when you want to receive Yo notifications. These all\nexist as constants on the `YoPlugin` class, and can be passed to the plugin like so:\n\n```php\n\u003c?php\nuse Evenement\\EventEmitterInterface;\nuse Peridot\\Plugin\\Yo\\YoPlugin;\n\nreturn function (EventEmitterInterface $emitter) {\n    $plugin = YoPlugin::register($emitter, \"your-yo-token\", ['USER1', 'USER2'], 'http://linktobuild.com');\n    $plugin-\u003esetBehavior(YoPlugin::BEHAVIOR_ON_PASS);\n};\n```\n\n### BEHAVIOR_ON_PASS\n\nReceive Yo notifications when the test suite passes.\n\n### BEHAVIOR_ON_FAIL\n\nReceive Yo notifications when the test suite fails. This is the default behavior.\n\n### BEHAVIOR_ALWAYS\n\nReceive Yo notifications when the test suite finishes running.\n\n## Running tests\n\nTests were written using [Peridot](http://peridot-php.github.io/). You can run them like so:\n\n```\n$ vendor/bin/peridot specs/\n```\n\n## Contributing\n\nPull requests, issues, and feedback are of course always welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperidot-php%2Fperidot-yo-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperidot-php%2Fperidot-yo-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperidot-php%2Fperidot-yo-plugin/lists"}