PHPackages                             tourze/benifit-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. tourze/benifit-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

tourze/benifit-bundle
=====================

Symfony Benefit Bundle

1.0.2(5mo ago)01.5k1MITPHPCI passing

Since Apr 12Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/benefit-bundle)[ Packagist](https://packagist.org/packages/tourze/benifit-bundle)[ RSS](/packages/tourze-benifit-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (29)Versions (6)Used By (1)

benefit-bundle
==============

[](#benefit-bundle)

[English](README.md) | [中文](README.zh-CN.md)

Symfony Benefit Bundle - A bundle for managing user benefits and rewards in Symfony applications.

Features
--------

[](#features)

- Provides `BenefitResource` interface for implementing benefit-related resources
- Seamless integration with Symfony framework
- Fully compatible with Symfony 6.4+

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Symfony 6.4 or higher
- Doctrine ORM 3.0 or higher

Installation
------------

[](#installation)

Install the bundle using Composer:

```
composer require tourze/benefit-bundle
```

Configuration
-------------

[](#configuration)

### Enable the Bundle

[](#enable-the-bundle)

If you're not using Symfony Flex, enable the bundle by adding it to the list of registered bundles in `config/bundles.php`:

```
return [
    // ...
    BenefitBundle\BenefitBundle::class => ['all' => true],
];
```

### Basic Configuration

[](#basic-configuration)

The bundle uses standard Symfony service configuration. Services are automatically configured with autowiring and autoconfiguration enabled.

Usage
-----

[](#usage)

### Implementing BenefitResource

[](#implementing-benefitresource)

Create your own benefit resource by implementing the `BenefitResource` interface:

```
