{"id":20129261,"url":"https://github.com/radutopala/tssautomailerbundle","last_synced_at":"2025-04-09T16:08:53.981Z","repository":{"id":3973618,"uuid":"5068590","full_name":"radutopala/TSSAutomailerBundle","owner":"radutopala","description":"Swiftmailer Spool for Doctrine packaged into a Symfony2 Bundle","archived":false,"fork":false,"pushed_at":"2017-12-11T20:12:59.000Z","size":55,"stargazers_count":11,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T16:08:45.017Z","etag":null,"topics":["pheanstalk","php","spool","swiftmailer","swiftmailer-spool","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"http://packagist.org/packages/tss/automailer-bundle","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/radutopala.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":"2012-07-16T14:35:11.000Z","updated_at":"2022-04-17T17:08:11.000Z","dependencies_parsed_at":"2022-08-24T10:51:21.489Z","dependency_job_id":null,"html_url":"https://github.com/radutopala/TSSAutomailerBundle","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radutopala%2FTSSAutomailerBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radutopala%2FTSSAutomailerBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radutopala%2FTSSAutomailerBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radutopala%2FTSSAutomailerBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radutopala","download_url":"https://codeload.github.com/radutopala/TSSAutomailerBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065283,"owners_count":21041871,"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","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":["pheanstalk","php","spool","swiftmailer","swiftmailer-spool","symfony","symfony-bundle"],"created_at":"2024-11-13T20:33:09.995Z","updated_at":"2025-04-09T16:08:53.952Z","avatar_url":"https://github.com/radutopala.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"TSSAutomailerBundle\n===================\n\nSwiftmailer Spool for Doctrine packaged into a Symfony2 Bundle\n\nInstallation instructions:\n\n- Easiest way to install is via composer, add those lines to `./composer.json`:\n\n```\n\"require\": {\n    ...\n    \"tss/automailer-bundle\": \"dev-master\"\n}\n```\n\nand then run `composer.phar install`\n\n- Then enable the bundle in `./app/AppKernel.php`:\n\n```\npublic function registerBundles()\n{\n    $bundles = [\n        ...\n        new TSS\\AutomailerBundle\\TSSAutomailerBundle(),\n    ];\n}\n```\n\n- Change Swiftmailer spool type in `./app/config.yml`:\n\n```\nswiftmailer:\n  ...\n  spool:     { type: automailer }\n```\n\n- Update your db with Bundle's entity:\n\n```\napp/console doctrine:schema:update --force\n```\n\nSet a cron to execute the queue:\n\n```\napp/console automailer:spool:send\n```\n\nYou can also test the spool by adding a new email with:\n\n```\napp/console automailer:test --email=info@trisoft.ro\n```\n\nAutomailer has also a Beanstalk integration feature, which uses pheanstalk to send a job with `automailer:spool:send` to a queue/tube. This feature is activated automatically once a new email is sent through mailer, if pheanstalk is installed and if you add this inside `./app/config.yml`:\n\n```\ntss_automailer:\n    beanstalk: true\n```\n\nYou can also customize the entity manager:\n\n```\ntss_automailer:\n    manager: doctrine_mongodb.odm.document_manager\n    class: TSS\\AutomailerBundle\\DefaultDocument\\Automailer\n```\n\nYou can easily customize the class used for the entity or document by simply configuring the class in `config.yml` and disabling the relevant functionality like this:\n\n```\ntss_automailer:\n    class: AppBundle\\Entity\\Automailer # or AppBundle\\Document\\Automailer, your specific path to your entity or document\n    disable_default_document: true # disables the default document so that you can use your own\n    disable_default_entity: true # disables the default entity so that you can use your own\n```\n\nIn order to customize the entity or document that you wish to use with your own functionality, you can do so by extending `TSS\\Automailer\\Model\\Automailer` and adding the relevant `@ODM\\Document()` or `@ORM\\Entity()` annotation to your class.\n\nEnjoy :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradutopala%2Ftssautomailerbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradutopala%2Ftssautomailerbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradutopala%2Ftssautomailerbundle/lists"}