{"id":23219111,"url":"https://github.com/b2pweb/bdf-queue-bundle","last_synced_at":"2026-01-29T22:01:04.334Z","repository":{"id":40486459,"uuid":"291726496","full_name":"b2pweb/bdf-queue-bundle","owner":"b2pweb","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-25T14:16:50.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-28T19:54:52.039Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b2pweb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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":"2020-08-31T13:43:32.000Z","updated_at":"2025-11-25T14:14:06.000Z","dependencies_parsed_at":"2024-02-28T14:27:47.600Z","dependency_job_id":"6b194648-87d0-4f2d-a190-9942658505c2","html_url":"https://github.com/b2pweb/bdf-queue-bundle","commit_stats":{"total_commits":40,"total_committers":2,"mean_commits":20.0,"dds":"0.44999999999999996","last_synced_commit":"42d1b919801cbc160661df7fbf335c5ea35f2481"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/b2pweb/bdf-queue-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b2pweb%2Fbdf-queue-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b2pweb%2Fbdf-queue-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b2pweb%2Fbdf-queue-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b2pweb%2Fbdf-queue-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b2pweb","download_url":"https://codeload.github.com/b2pweb/bdf-queue-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b2pweb%2Fbdf-queue-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28886881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"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":[],"created_at":"2024-12-18T21:19:18.846Z","updated_at":"2026-01-29T22:01:04.301Z","avatar_url":"https://github.com/b2pweb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![build](https://github.com/b2pweb/bdf-queue-bundle/actions/workflows/php.yml/badge.svg)](https://github.com/b2pweb/bdf-queue-bundle/actions/workflows/php.yml)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/b2pweb/bdf-queue-bundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/b2pweb/bdf-queue-bundle/?branch=master)\n[![Packagist Version](https://img.shields.io/packagist/v/b2pweb/bdf-queue-bundle.svg)](https://packagist.org/packages/b2pweb/bdf-queue-bundle)\n[![Total Downloads](https://img.shields.io/packagist/dt/b2pweb/bdf-queue-bundle.svg)](https://packagist.org/packages/b2pweb/bdf-queue-bundle)\n\nInstallation\n============\n\n1 Download the Bundle\n---------------------\n\nDownload the latest stable version of this bundle with composer:\n\n```bash\n    $ composer require b2pweb/bdf-queue-bundle\n```\n\n2 Enable the Bundle\n-------------------\n\nAdding the following line in the ``config/bundles.php`` file of your project::\n\n```php\n\u003c?php\n// config/bundles.php\n\nreturn [\n    // ...\n    Bdf\\QueueBundle\\BdfQueueBundle::class =\u003e ['all' =\u003e true],\n    // ...\n];\n```\n\n3 Set environment\n-----------------\n\nAdd your dsn on the`.env` file\n\n```\nBDF_QUEUE_CONNETION_URL=gearman://root@127.0.0.1?client-timeout=10\n```\n\n4 Add configuration\n-------------------\n\nAdd a default config file to `./config/packages/bdf_queue.yaml`\n\n```yaml\nbdf_queue:\n  default_connection: 'gearman'\n  default_serializer: 'bdf'\n  connections:\n    gearman:\n      # A URL with connection information. \n      # Any parameter value parsed from this string will override explicitly set parameters. \n      # Format: {driver}+{vendor}://{user}:{password}@{host}:{port}/{queue}?{option}=value\n      url: '%env(resolve:BDF_QUEUE_CONNETION_URL)%'\n      \n      # Use those attribute to declare the connection if no url has been provided.\n      driver:   ~\n      vendor:   ~\n      queue:    ~\n      host:     ~\n      port:     ~\n      user:     ~\n      password: ~\n    \n      serializer:\n        # The serializer ID. This ID will be prefix by \"bdf_queue.serializer\". Defined values: native, bdf, bdf_json.\n        id: 'native'\n        # The serializer service ID (without '@').\n        #service : ~\n        \n      # Options of the connection. See https://github.com/b2pweb/bdf-queue for the list of available options.\n      options:\n        #key: ~ \n  \n      \n      # Use a custom service to create your connection (with '@').\n      # Use the Bdf\\QueueBundle\\ConnectionFactory\\ConnectionDriverFactory::createDriver() by default.\n      connection_factory: ~\n      \n  destinations:\n    bus:\n      # A URL with destination information; Format: [queue|queues|topic]://{connection}/{queue}\n      url: 'queue://gearman/bus'\n      \n      consumer:\n        # Set unique handler as outlet receiver\n        handler: 'var_dump'\n        \n        # Retry failed jobs (i.e. throwing an exception)\n        #retry: 0\n        \n        # Limit the number of received message. When the limit is reached, the consumer is stopped\n        #max: 2\n        \n        # Limit the received message rate\n        #limit: 100\n        \n        # Limit the total memory usage of the current runtime in bytes. When the limit is reached, the consumer is stopped\n        #memory: 128\n        \n        # Store the failed messages\n        #save: true\n        \n        # Disable the reset of services between messages\n        #no_reset: true\n        \n        # Catch all exceptions to ensure that the consumer will no crash (and will silently fail)\n        #no_failure: true\n        \n        # Stops consumption when the destination is empty (i.e. no messages are received during the waiting duration)\n        #stop_when_empty: true\n        \n        # Set auto discover as outlet receiver. The message should contain target hint.\n        #auto_handle: true\n        \n        # Define your own middleware. They should be added in the receiver factory.\n        # See the Bdf\\Queue\\Consumer\\Receiver\\Builder\\ReceiverFactory::addFactory()\n        #middlewares:\n        #  - 'bench'\n```\n\n\n5 Create your receiver in consumption\n-------------------------------------\n\nIf the parameter `autoconfigure` is activated you can implement the interface `Bdf\\QueueBundle\\Consumption\\ReceiverFactoryProviderInterface`\nto have your receiver factory auto registered. Otherwise use the tag `bdf_queue.receiver_factory`.\n\nex:\n```yaml\nservices:\n  FooReceiverFactory:\n    class: 'FooReceiverFactory'\n    tags: ['bdf_queue.receiver_factory']\n```\n\n\n6 Create your connection\n------------------------\n\nIf the parameter `autoconfigure` is activated you can implement the interface `Bdf\\QueueBundle\\ConnectionFactory\\ConnectionDriverConfiguratorInterface`\nto have your connection factory auto registered. Otherwise use the tag `bdf_queue.driver_configurator`.\n\nex:\n```yaml\nservices:\n  FooConnectionFactory:\n    class: 'FooConnectionFactory'\n    tags: ['bdf_queue.driver_configurator']\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb2pweb%2Fbdf-queue-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb2pweb%2Fbdf-queue-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb2pweb%2Fbdf-queue-bundle/lists"}