{"id":15645854,"url":"https://github.com/filp/nod","last_synced_at":"2025-10-05T15:17:30.492Z","repository":{"id":4452629,"uuid":"5591179","full_name":"filp/nod","owner":"filp","description":"Notifications in PHP (notify-send, growl, etc) like that.","archived":false,"fork":false,"pushed_at":"2012-08-29T13:20:25.000Z","size":108,"stargazers_count":52,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-20T17:51:59.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/filp.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-28T19:50:47.000Z","updated_at":"2023-11-11T05:20:32.000Z","dependencies_parsed_at":"2022-08-30T15:40:43.531Z","dependency_job_id":null,"html_url":"https://github.com/filp/nod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/filp/nod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filp%2Fnod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filp%2Fnod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filp%2Fnod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filp%2Fnod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filp","download_url":"https://codeload.github.com/filp/nod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filp%2Fnod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278472408,"owners_count":25992643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"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":[],"created_at":"2024-10-03T12:10:21.514Z","updated_at":"2025-10-05T15:17:30.458Z","avatar_url":"https://github.com/filp.png","language":"PHP","funding_links":[],"categories":["通知","通知 Notifications","Notifications","通知( Notifications )"],"sub_categories":[],"readme":"#Nod\n========\nNotifications in PHP (`notify-send, growl, etc`) like **that**.\n\n##Examples\n============\n\nLetting `Nod` figure out the best Adapter to use (**not recommend ATM, only works with some Linux environments**):\n\n```php\n#!/usr/bin/env php\n\u003c?php  \n\n$notification = new Nod\\Notification;\n$notification\n  -\u003esetTitle('My rad notification')\n  -\u003esetMessage('Check it.')\n  -\u003esetUrgency('high')\n  -\u003esetExpiry(3000)\n  -\u003esetIcon('emblem-favorite.png')\n  -\u003esend();\n```\n\nExplicitly giving **Nod** an Adapter to work with:\n\n```php\n#!/usr/bin/env php\n\u003c?php  \n\nuse Nod\\Adapter\\Terminal as TerminalAdapter;\n\n$notification = new Nod\\Notification(new TerminalAdapter);\n$notification\n  -\u003esetTitle('Look at ya')\n  -\u003esetMessage('Let me see what ya got')\n  // you can also specify the expiry directly in the send() method:\n  -\u003esend(5000);\n```\n\nCreating your own Adapters is also as easy as implementing `Nod\\Adapter\\AdapterInterface`:\n\n```php\n\u003c?php\n\nnamespace Nod\\Adapter;\ninterface AdapterInterface\n{\n    /* bool */ public function canNotify();\n    /* bool */ public function process($title, $message, $urgency, $expiry, $icon);\n}\n```\n\n##Installation\n============\n\n**Nod** is available through **[composer](http://getcomposer.org/)** ([packagist page](http://packagist.org/packages/filp/nod)), just drop `filp/nod` into your `composer.json` and you're good to go:\n\n```javascript\n{\n    \"require\" : {\n        \"filp/nod\" : \"dev-master\"\n    }\n}\n```\n\nThe Nod library can be loaded directly through the composer autoloader, or with any `PSR-0` compatible autoloader.\n\n##TODOs, wishlist, etc\n============\n\n* Platform support (OSX growl, Windows growl, etc)\n* Unit tests (soon!)\n* More adapters for all sorts of zany stuff.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilp%2Fnod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilp%2Fnod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilp%2Fnod/lists"}