{"id":37009009,"url":"https://github.com/webmafia/fluentlog-php","last_synced_at":"2026-01-14T00:51:33.742Z","repository":{"id":322595236,"uuid":"1089604961","full_name":"webmafia/fluentlog-php","owner":"webmafia","description":"Fast, structured logging for PHP that implemented the Fluent Forward protocol","archived":false,"fork":false,"pushed_at":"2025-11-04T15:55:04.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-05T10:42:25.020Z","etag":null,"topics":["fluentbit","fluentd","log","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/webmafia/fluentlog","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/webmafia.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-04T15:10:08.000Z","updated_at":"2025-11-04T15:56:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/webmafia/fluentlog-php","commit_stats":null,"previous_names":["webmafia/fluentlog-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/webmafia/fluentlog-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmafia%2Ffluentlog-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmafia%2Ffluentlog-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmafia%2Ffluentlog-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmafia%2Ffluentlog-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webmafia","download_url":"https://codeload.github.com/webmafia/fluentlog-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmafia%2Ffluentlog-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"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":["fluentbit","fluentd","log","php"],"created_at":"2026-01-14T00:51:33.644Z","updated_at":"2026-01-14T00:51:33.719Z","avatar_url":"https://github.com/webmafia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluentlog-php\nThis is a PHP version of [Fluentlog](https://github.com/webmafia/fluentlog), with three important differences:\n1. Writing logs is not asynchronous.\n2. Written logs are not buffered.\n3. Written logs are not retried.\n\nFor this reason it's highly recommended to write to a local log collector (preferably [FluentBit](https://fluentbit.io/)).\n\n## Installation\n```sh\ncomposer require webmafia/fluentlog\n```\n\n## Usage example\n```php\n\u003c?php\n\nuse Webmafia\\Fluentlog\\Logger;\nuse Webmafia\\Fluentlog\\TcpClient;\nuse Webmafia\\Fluentlog\\TextClient;\n\nrequire_once('../vendor/autoload.php');\n\n$env = parse_ini_file('.env');\n\n$client = new TcpClient(\n\thost: $env['HOST'],\n\tuseTls: !empty($env['TLS']),\n    sharedKey: $env['SHARED_KEY'],\n    username: $env['USERNAME'],\n    password: $env['PASSWORD']\n);\n\n// $client = new TextClient(fopen('php://output', 'w'));\n\n$logger = new Logger($client, 'php');\n$start = microtime(true);\n\nfor($i = 0; $i \u003c 10; $i++) {\n\techo $logger-\u003einfo('hello from php %d', $i) . \"\\n\";\n}\n\n$end = microtime(true);\n$dur = $end - $start;\necho 'Done in ' . $dur . ' seconds' . \"\\n\";\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmafia%2Ffluentlog-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebmafia%2Ffluentlog-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmafia%2Ffluentlog-php/lists"}