PHPackages                             omatech/laravel-promo-codes - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. omatech/laravel-promo-codes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

omatech/laravel-promo-codes
===========================

0132PHPCI failing

Since Sep 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/omatech/laravel-promo-codes)[ Packagist](https://packagist.org/packages/omatech/laravel-promo-codes)[ RSS](/packages/omatech-laravel-promo-codes/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ca4f2dd9e7b05010589b42a68318067399afa42f7165e910578f8e25c48fdd38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6d61746563682f6c61726176656c2d70726f6d6f2d636f6465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omatech/laravel-promo-codes)[![Build Status](https://camo.githubusercontent.com/553c00a628e561a33effe103776815bfa9daacc7a117f602078e27b84d67fe6a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f6d61746563682f6c61726176656c2d70726f6d6f2d636f6465732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/omatech/laravel-promo-codes)[![Quality Score](https://camo.githubusercontent.com/96a18eca54b19be0f92a2dad52ebcc3902a75be5b1a08064d1c06d47516ec27f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6f6d61746563682f6c61726176656c2d70726f6d6f2d636f6465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/omatech/laravel-promo-codes)[![Total Downloads](https://camo.githubusercontent.com/33e0e69a1b43005905566340c0b04cacfd15e325ad8690e30e52f86219785e15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6d61746563682f6c61726176656c2d70726f6d6f2d636f6465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omatech/laravel-promo-codes)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

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

[](#installation)

You can install the package via composer:

```
composer require omatech/laravel-promo-codes
```

Usage
-----

[](#usage)

```
// Usage description here
```

Generate promotional codes with a prefix:

```
$data = [
    'prefix' => 'EXAMPLE',
    ...
];

$promoCode = PromoCode::generate($data);

echo $promoCode->getCode(); //EXAMPLEXXXXX
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Adrià Roca](https://github.com/adriaroca)
- [Agustí Pons](https://github.com/aponscat)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 82.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a6b2440a7864015d71501a9cd77d28bed549c283afdd8d1af95f54b650dc833?d=identicon)[aponscat](/maintainers/aponscat)

---

Top Contributors

[![adriaroca](https://avatars.githubusercontent.com/u/3205030?v=4)](https://github.com/adriaroca "adriaroca (19 commits)")[![slinares-oma](https://avatars.githubusercontent.com/u/53426995?v=4)](https://github.com/slinares-oma "slinares-oma (4 commits)")

### Embed Badge

![Health badge](/badges/omatech-laravel-promo-codes/health.svg)

```
[![Health](https://phpackages.com/badges/omatech-laravel-promo-codes/health.svg)](https://phpackages.com/packages/omatech-laravel-promo-codes)
```

PHPackages © 2026

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