PHPackages                             hirschberg/credits - 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. hirschberg/credits

ActiveLaravel

hirschberg/credits
==================

Laravel Package for easily adding User Credits support (fork of iamjaime/credits)

01PHP

Since Jul 17Pushed 2y agoCompare

[ Source](https://github.com/hirschberg/laravel-user-credits)[ Packagist](https://packagist.org/packages/hirschberg/credits)[ RSS](/packages/hirschberg-credits/feed)WikiDiscussions dev-master-felix Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

### Laravel User Credits Package

[](#laravel-user-credits-package)

The purpose of this package is for you to be able to easily apply a credit based system to your existing Laravel Application.

For example : if you want to create a site that people must purchase credits in order to purchase items on the site, this package will make it easy for you to do.

To get started follow these steps:

*Install the package using composer*

`composer require iamjaime/credits --dev`

Then go to your config/app directory and add the following to the providers array:

`Iamjaime\Credits\UserCreditServiceProvider::class`

Now you must run the migrations....

`php artisan migrate`

Now go to your User's Model and add the following line at the top:

`use Iamjaime\Credits\Traits\UsesCredits;`

then add the following line inside your class :

`use UsesCredits;`

Your Model should now look something like this :

```
