PHPackages                             madforwebs/account-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. madforwebs/account-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

madforwebs/account-bundle
=========================

This bundle provides a accountbundle for symfony2

v1.0.x-dev(6y ago)091MITHTML

Since Oct 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/madforwebs/AccountBundle)[ Packagist](https://packagist.org/packages/madforwebs/account-bundle)[ RSS](/packages/madforwebs-account-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (1)

CalendarBundle
==============

[](#calendarbundle)

The `BookingBundle` means easy-to-implement and feature-rich calendar in your Symfony application!

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

[](#installation)

### Download the Bundle

[](#download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require madforwebs/financial-bundle
```

This command requires you to have Composer installed globally, as explained in the `installation chapter` of the Composer documentation.

### Enable the Bundle

[](#enable-the-bundle)

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project:

```
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new MadForWebs\FinancialBundle\FinancialBundle(),
        );

        // ...
    }

    // ...
}
```

Import service calendar to app
------------------------------

[](#import-service-calendar-to-app)

You must define import service from @CalendarBundle like this in your config.yml

```
    imports:
        ...
        - { resource: "@FinancialBundle/Resources/config/services.yml" }
        ...
```

Import calendar festive days
----------------------------

[](#import-calendar-festive-days)

An example use service to import festive days

```
    /** @var CalendarHandler $calendarHandler */
    $calendarHandler = $this->get('mad_for_webs_calendar.handler');
    $calendarHandler->createDaysFromCalendar();
```

Extend class account
--------------------

[](#extend-class-account)

You can extend class

```
    use MadForWebs\FinancialBundle\Entity\Account as BaseAccount;

    /**
     * @ORM\Entity
     * @ORM\Table(name="mfw_account")
     */
    class Account extends BaseAccount
    {
        ...

        /**
         * @ORM\OneToMany(targetEntity="Expenditure", mappedBy="account", cascade={"all"})
         * @ORM\OrderBy({"dateBuy"="DESC"})
         */
        private $expenditures;

        /**
         * @ORM\OneToMany(targetEntity="Income", mappedBy="account", cascade={"all"})
         * @ORM\OrderBy({"dateIncome"="DESC"})
         */
        private $earnings;

        /**
         * @ORM\OneToMany(targetEntity="Income", mappedBy="accountDestiny", cascade={"all"})
         * @ORM\OrderBy({"dateIncome"="DESC"})
         */
        private $earningsOrigins;
}
```

```
    use MadForWebs\FinancialBundle\Entity\Expenditure as BaseExpenditure;

    /**
     * Expenditure
     *
     * @ORM\Table(name="expenditure")
     * @ORM\Entity(repositoryClass="FinancialBundle\Repository\ExpenditureRepository")
     */
    class Expenditure
    {

        /**
         * @ORM\ManyToOne(targetEntity="Provider", inversedBy="expenditures")
         * @ORM\JoinColumn(name="provider", referencedColumnName="id", nullable=true)
         */
        private $provider;

        /**
         * @ORM\ManyToOne(targetEntity="Account", inversedBy="expenditures")
         * @ORM\JoinColumn(name="account", referencedColumnName="id", nullable=true)
         */
        private $account;

        /**
         * @var string
         * @ORM\Column(name="way_to_pay", type="string", columnDefinition="enum('card','bank','transfer','cash','paydesk', 'gratification')" , nullable=false)
         */
        private $wayToPay;

    }

```php
    use MadForWebs\FinancialBundle\Entity\Income as BaseIncome;

    /**
     * Income
     *
     * @ORM\Table(name="income")
     * @ORM\Entity(repositoryClass="FinancialBundle\Repository\IncomeRepository")
     */
    class Income
    {

        /**
         * @ORM\OneToOne(targetEntity="Income", inversedBy="linkedIncome")
         * @ORM\JoinColumn(name="linkedIncome", referencedColumnName="id", nullable=true)
         */
        private $linkedIncome;

        /**
         * @ORM\ManyToOne(targetEntity="Account", inversedBy="earnings")
         * @ORM\JoinColumn(name="account", referencedColumnName="id", nullable=false)
         */
        private $account;

        /**
         * @ORM\ManyToOne(targetEntity="Account", inversedBy="earningsOrigins")
         * @ORM\JoinColumn(name="accountDestiny", referencedColumnName="id", nullable=true)
         */
        private $accountDestiny;
    }

```php
    use MadForWebs\FinancialBundle\Entity\Provider as BaseProvider;

    /**
     * Provider
     *
     * @ORM\Table(name="provider")
     * @ORM\Entity(repositoryClass="FinancialBundle\Repository\ProviderRepository")
     */
    class Provider
    {

        /**
         * @ORM\OneToMany(targetEntity="Expenditure", mappedBy="provider", cascade={"all"})
         * @ORM\OrderBy({"dateBuy"="DESC"})
         */
        private $expenditures;

        /**
         * @ORM\OneToMany(targetEntity="Product", mappedBy="provider", cascade={"all"})
         * @ORM\OrderBy({"name"="ASC"})
         */
        private $products;
    }
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2383d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfca41902cbfed33f74c6bcb36a8b9e325db194236f6887d2d269e206fc17ee4?d=identicon)[madforwebs](/maintainers/madforwebs)

---

Top Contributors

[![madforwebs](https://avatars.githubusercontent.com/u/36137927?v=4)](https://github.com/madforwebs "madforwebs (11 commits)")

### Embed Badge

![Health badge](/badges/madforwebs-account-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/madforwebs-account-bundle/health.svg)](https://phpackages.com/packages/madforwebs-account-bundle)
```

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

6914.0M61](/packages/scheb-2fa-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

63397.4k6](/packages/web-auth-webauthn-symfony-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
