{"id":24198994,"url":"https://github.com/maximiliengilet/notification-bundle","last_synced_at":"2025-04-05T00:09:38.351Z","repository":{"id":48443567,"uuid":"59357486","full_name":"maximilienGilet/notification-bundle","owner":"maximilienGilet","description":"A simple Symfony bundle to notify user","archived":false,"fork":false,"pushed_at":"2022-10-27T18:35:19.000Z","size":323,"stargazers_count":107,"open_issues_count":17,"forks_count":58,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T23:08:43.472Z","etag":null,"topics":["bundle","php","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/mgilet/notification-bundle","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/maximilienGilet.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-21T11:58:51.000Z","updated_at":"2024-04-25T10:18:15.000Z","dependencies_parsed_at":"2022-08-22T09:40:42.042Z","dependency_job_id":null,"html_url":"https://github.com/maximilienGilet/notification-bundle","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilienGilet%2Fnotification-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilienGilet%2Fnotification-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilienGilet%2Fnotification-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilienGilet%2Fnotification-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximilienGilet","download_url":"https://codeload.github.com/maximilienGilet/notification-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266564,"owners_count":20910836,"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":["bundle","php","symfony","symfony-bundle"],"created_at":"2025-01-13T20:19:41.937Z","updated_at":"2025-04-05T00:09:38.335Z","avatar_url":"https://github.com/maximilienGilet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003emgilet/notification-bundle\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\nAn easy yet powerful notification bundle for Symfony\n\u003cbr\u003e\n\u003cbr\u003e\n\u003ca href=\"https://packagist.org/packages/mgilet/notification-bundle\"\u003e\u003cimg src=\"https://poser.pugx.org/mgilet/notification-bundle/v/stable\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/mgilet/notification-bundle\"\u003e\u003cimg src=\"https://poser.pugx.org/mgilet/notification-bundle/v/unstable\" alt=\"Latest Unstable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/mgilet/notification-bundle\"\u003e\u003cimg src=\"https://poser.pugx.org/mgilet/notification-bundle/downloads\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/mgilet/notification-bundle\"\u003e\u003cimg src=\"https://poser.pugx.org/mgilet/notification-bundle/license\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://insight.sensiolabs.com/projects/697abbcc-4b15-418a-a6c9-e662787fed48\"\u003e\u003cimg src=\"https://insight.sensiolabs.com/projects/697abbcc-4b15-418a-a6c9-e662787fed48/big.png\" alt=\"SensioLabsInsight\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"http://i.imgur.com/07OcF6c.gif\" alt=\"mgilet/notificationBundle\"\u003e\u003c/p\u003e\n\nCreate and manage notifications in an efficient way.\n\nSymfony support :\n  * 2.7.x (bundle version 2.x)\n  * 2.8.x (bundle version 2.x)\n  * 3.x\n  * 4.x\n\n## NOW SUPPORTS SYMFONY FLEX !\n\nVersion 3.0 out now.\n\n## Features\n\n- Easy setup\n- Easy to use\n- Powerful notification management\n- Simple Twig render methods\n- Fully customizable\n- Multiple notifiables entities\n- No bloated dependencies (little requirements)\n\nNotice: Only Doctrine ORM is supported for now.\n\n## Upgrade from 3.x\n\n### Custom Notification entity usage\n\nIf you use a custom Notification entitiy you must remove the `resolve_target_entities` directive from the doctrine configuration and add a configuration file.\n\n### Example\n\nAfter adding the customized notification class as in #39 just add a configuration file\n\n`config/packages/mgilet_notification.yaml`\n\n```yaml\nmgilet_notification:\n  notification_class: App\\Entity\\MyCustomNotification\n```\n\n\n\n## Installation \u0026 usage\n\nThis bundle is available on [packagist](https://packagist.org/packages/mgilet/notification-bundle).\n\nAdd notification-bundle to your project :\n\n```bash\n$ composer require mgilet/notification-bundle\n```\n\n**See [documentation](Resources/doc/index.rst) for next steps**\n\n### Basic usage\n\n```php\nclass MyController extends Controller\n{\n\n    ...\n\n    public function sendNotification(Request $request)\n    {\n      $manager = $this-\u003eget('mgilet.notification');\n      $notif = $manager-\u003ecreateNotification('Hello world!');\n      $notif-\u003esetMessage('This a notification.');\n      $notif-\u003esetLink('https://symfony.com/');\n      // or the one-line method :\n      // $manager-\u003ecreateNotification('Notification subject', 'Some random text', 'https://google.fr/');\n\n      // you can add a notification to a list of entities\n      // the third parameter `$flush` allows you to directly flush the entities\n      $manager-\u003eaddNotification(array($this-\u003egetUser()), $notif, true);\n\n      ...\n    }\n```\n\n## Translations\n\nFor now this bundle is only translated to de, en, es, fa, fr, it, nl, pt_BR, pl.\n\nHelp me improve this by submitting your translations.\n\n## Community\n\nYou can help make this bundle better by contributing (every pull request will be considered) or submitting an issue.\n\nEnjoy and share if you like it.\n\n## Licence\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximiliengilet%2Fnotification-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximiliengilet%2Fnotification-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximiliengilet%2Fnotification-bundle/lists"}