{"id":36398970,"url":"https://github.com/viloveul/transport","last_synced_at":"2026-01-11T16:01:43.043Z","repository":{"id":48596710,"uuid":"174726131","full_name":"viloveul/transport","owner":"viloveul","description":"Simple message transport with amqp","archived":false,"fork":false,"pushed_at":"2021-07-19T04:21:11.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T00:07:36.636Z","etag":null,"topics":["amqp","communication","component","library","php","transport","viloveul","viloveul-framework"],"latest_commit_sha":null,"homepage":"","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/viloveul.png","metadata":{"files":{"readme":"README.MD","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":"2019-03-09T17:39:27.000Z","updated_at":"2021-07-19T03:01:56.000Z","dependencies_parsed_at":"2022-09-05T21:40:25.624Z","dependency_job_id":null,"html_url":"https://github.com/viloveul/transport","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/viloveul/transport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viloveul%2Ftransport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viloveul%2Ftransport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viloveul%2Ftransport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viloveul%2Ftransport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viloveul","download_url":"https://codeload.github.com/viloveul/transport/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viloveul%2Ftransport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28312133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"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":["amqp","communication","component","library","php","transport","viloveul","viloveul-framework"],"created_at":"2026-01-11T16:01:18.235Z","updated_at":"2026-01-11T16:01:43.031Z","avatar_url":"https://github.com/viloveul.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"```shell\ncomposer require viloveul/transport\n```\n\n\n## SETUP\n\ninitilize bus connection for data transport\n\n```php\nrequire_once __DIR__ . '/vendor/autoload.php';\n\n$bus = new Viloveul\\Transport\\Bus();\n$bus-\u003einitialize();\n$bus-\u003eaddConnection('amqp://localhost:5672//');\n```\n\ndeclaring class passenger (for whatever your data)\n\n```php\nuse Viloveul\\Transport\\Passenger;\n\nclass TaskPassenger extends Passenger\n{\n\tpublic function point(): string\n\t{\n\t\treturn 'exchange name';\n\t}\n\n\tpublic function route(): string\n\t{\n\t\treturn 'routing.key';\n\t}\n\n\tpublic function data(): string\n\t{\n\t\treturn 'string-data';\n\t}\n\n\tpublic function handle(): void\n\t{\n\t\t$this-\u003esetAttribute('data', [\n\t\t\t'foo' =\u003e 'bar'\n\t\t]);\n\t}\n}\n```\n\n## BROKER MESSAGE (RabbitMQ)\nrun rabbit under docker\n```bash\ndocker run --rm -p 5672:5672 rabbitmq:3\n# rabbitmq listen for port 5672\n```\n\nprocessing task\n\n```php\n$bus-\u003eprocess(new TaskPassenger);\n```\n\n\n## BACKEND (using Celery)\n\n```shell\ncd sample/celery\ncelery -A tasks worker --loglevel=info\n```\n\n## BACKEND (websocket)\n\n```shell\ncd sample/socket.io\nnpm install\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviloveul%2Ftransport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviloveul%2Ftransport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviloveul%2Ftransport/lists"}