{"id":33949031,"url":"https://github.com/keboola/gelf-server","last_synced_at":"2026-03-17T23:38:05.705Z","repository":{"id":8804577,"uuid":"59022134","full_name":"keboola/gelf-server","owner":"keboola","description":"A simple library GELF server written in PHP","archived":false,"fork":false,"pushed_at":"2023-02-02T15:10:48.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-12-14T07:47:15.602Z","etag":null,"topics":["gelf","gelf-server","graylog2","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"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/keboola.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-05-17T12:54:11.000Z","updated_at":"2022-04-11T20:15:21.000Z","dependencies_parsed_at":"2023-02-17T21:16:08.173Z","dependency_job_id":null,"html_url":"https://github.com/keboola/gelf-server","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/keboola/gelf-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keboola%2Fgelf-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keboola%2Fgelf-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keboola%2Fgelf-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keboola%2Fgelf-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keboola","download_url":"https://codeload.github.com/keboola/gelf-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keboola%2Fgelf-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30635280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"last_error":"SSL_read: 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":["gelf","gelf-server","graylog2","php"],"created_at":"2025-12-12T19:00:12.244Z","updated_at":"2026-03-17T23:38:05.663Z","avatar_url":"https://github.com/keboola.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GELF server [![GitHub Actions](https://github.com/keboola/gelf-server/actions/workflows/push.yml/badge.svg)](https://github.com/keboola/gelf-server/actions/workflows/push.yml)\n\nA php implementation of a [gelf](http://docs.graylog.org/en/2.0/pages/gelf.html) compatible backend like [Graylog2](https://www.graylog.org/). This library provides\na simple server to which a GELF client can connect. \n\n## Installation\n\nRecommended installation via composer:\n\nAdd gelf-server to composer.json either by running `composer require keboola/gelf-server` or by defining it manually:\n\n\t\"require\": {\n\t   // ...\n\t   \"keboola/gelf-server\": \"^1.1\"\n\t   // ...\n\t}\n\nReinstall dependencies: `composer install`\n\n## Usage\n\nTo create a server, use the `ServerFactory` class:\n\n\t$server = ServerFactory::createServer(ServerFactory::SERVER_TCP);\n\nTo start listening for connections, us the `start` method. This method has the following parameters:\n\n- `$minPort` and `$maxPort` - to set port on which the server listens. To listen on a single port use the same value for\n\tboth `$minPort` and `$maxPort`. Otherwise the server will randomly choose a free port in the specified range (inclusive).\n- `$onStart` - Callback executed when the server successfully started listening, the callback signature is `function ($port)`, which\n\tgives you the actual port the server is listening on.\n- `$onProcess` - Callback executed periodically when the server is running. The callback has signature `function (\u0026$terminated)`. \n\tThe server will keep running indefinitely until you set `$terminated` to true in this callback.\n- `$onEvent` - Callback executed when a GELF event is received. The callback has signature `function ($event)`. The \n\t`$event` variable contains associative array with [GELF fields](http://docs.graylog.org/en/2.0/pages/gelf.html#gelf-format-specification)\n- `$onTerminate` - Optional callback executed when the server terminates - after it stops listening for connections. The callback\n\tsignature is `function ()`.\n\n## Examples\n\nFor usage examples, see the [/examples](https://github.com/keboola/gelf-server/tree/master/examples) directory.\n\n## License\n\nMIT licensed, see [LICENSE](./LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeboola%2Fgelf-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeboola%2Fgelf-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeboola%2Fgelf-server/lists"}