{"id":19404513,"url":"https://github.com/seven-io/monolog","last_synced_at":"2025-09-04T07:42:55.433Z","repository":{"id":57054074,"uuid":"375342848","full_name":"seven-io/monolog","owner":"seven-io","description":"Monolog handler for sending SMS via seven","archived":false,"fork":false,"pushed_at":"2025-03-13T12:56:42.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T21:40:07.995Z","etag":null,"topics":["monolog","monolog-handler","sms","sms-api"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/seven.io/monolog","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/seven-io.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-09T12:12:07.000Z","updated_at":"2025-03-13T12:56:46.000Z","dependencies_parsed_at":"2025-06-05T17:43:07.455Z","dependency_job_id":null,"html_url":"https://github.com/seven-io/monolog","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"bddee376ad1d01af5972950f3bb3256fd1db29ca"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/seven-io/monolog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fmonolog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fmonolog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fmonolog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fmonolog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seven-io","download_url":"https://codeload.github.com/seven-io/monolog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fmonolog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273574125,"owners_count":25129882,"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-09-04T02:00:08.968Z","response_time":61,"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":["monolog","monolog-handler","sms","sms-api"],"created_at":"2024-11-10T11:35:18.133Z","updated_at":"2025-09-04T07:42:55.374Z","avatar_url":"https://github.com/seven-io.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://www.seven.io/wp-content/uploads/Logo.svg\" width=\"250\" /\u003e\n\n# Monolog Handler\n\nSend log entries by SMS or make text-to-speech calls via [seven](https://www.seven.io).\n\n## Installation\nThis package can be installed via composer.\n\n```bash\ncomposer require seven.io/monolog\n```\n\n## Usage\n\n```php\nuse Seven\\Monolog\\Config;\nuse Seven\\Monolog\\Handler;\nuse Monolog\\Logger;\n\n$logger = Logger('demo');\n$apiKey = getenv('SEVEN_API_KEY'); // seven API key required for sending\n\n// SMS\n$cfg = [\n    Config::KEY_API_KEY =\u003e $apiKey,\n    Config::KEY_FLASH =\u003e 0, // 0 or 1\n    Config::KEY_FOREIGN_ID =\u003e 'MyForeignID', // optional foreign ID max 64 chars consisting of a-zA-Z0-9, ._@\n    Config::KEY_FROM =\u003e 'Monolog', // optional sender - max 11 alphanumeric or 16 numeric characters\n    Config::KEY_LABEL =\u003e 'MyLabel', // optional label max 100 chars consisting of a-zA-Z0-9, ._@\n    Config::KEY_PERFORMANCE_TRACKING =\u003e 0, // 0 or 1\n    Config::KEY_TO =\u003e '+491234567890', // recipient(s) separated by comma\n];\n$handler = Handler::buildFromArray($cfg);\n$logger\n    -\u003epushHandler($handler)\n    -\u003eaddCritical('critical bug');\n\n// text-to-speech call\n$cfg = [\n    Config::KEY_API_KEY =\u003e $apiKey,\n    Config::KEY_APP =\u003e Config::APP_VOICE,\n    Config::KEY_FROM =\u003e '+4901234567890', // optional sender - must be verified or a shared inbound number\n    Config::KEY_TO =\u003e '+491234567890', // recipient(s) separated by comma\n];\n$handler = Handler::buildFromArray($cfg);\n$logger\n    -\u003epushHandler($handler)\n    -\u003eaddCritical('critical bug');\n```\n\n### Support\n\nNeed help? Feel free to [contact us](https://www.seven.io/en/company/contact/).\n\n[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven-io%2Fmonolog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseven-io%2Fmonolog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven-io%2Fmonolog/lists"}