jlorente/yii2-billing

A Yii2 extension to handle the billing feature in our projects. It includes a fluent programming interface to create invoices and a visual interface to create, edit and export them in html or pdf format.

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 3

Open Issues: 0

Type:yii2-extension

dev-master 2018-12-19 10:07 UTC

This package is auto-updated.

Last update: 2024-11-20 01:21:07 UTC


README

A Yii2 extension to handle billing.

Installation

Include the package as dependency under the composer.json file.

To install, either run

$ php composer.phar require jlorente/yii2-billing "*"

or add

...
    "require": {
        // ... other configurations ...
        "jlorente/yii2-billing": "*"
    }

to the require section of your composer.json file and run the following commands from your project directory.

$ composer update

Migration

Apply the package migration

$ ./yii migrate --migrationPath=@vendor/jlorente/yii2-billing/src/migrations

or extend this migration in your project and apply it as usually.

###Module setup You must add this module to the module section and the bootstrap section of the application config file in order to make it work.

../your_app/config/main.php

return [
    //Other configurations
    'modules' => [
        //Other modules
        'billing' => 'jlorente\billing\Module'
    ],
    'bootstrap' => [
        //Other bootstrapped modules
        , 'billing'
    ]
]

Usage

In development...

License

Copyright © 2017 José Lorente Martín jose.lorente.martin@gmail.com.

Licensed under the MIT license. See LICENSE.txt for details.