Download the PHP package macmotp/codegen-laravel without Composer
On this page you can find all versions of the php package macmotp/codegen-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download macmotp/codegen-laravel
More information about macmotp/codegen-laravel
Files in macmotp/codegen-laravel
Package codegen-laravel
Short Description Generate human friendly codes - Laravel Extension
License MIT
Homepage https://github.com/macmotp/codegen-laravel
Informations about the package codegen-laravel
Code Generator - Laravel Extension
Generate human friendly codes
Useful for generation of referral codes based on names, receipt numbers, unique references.
This is the Laravel extension for the package Codegen - Generate Human Friendly Codes
Requirements
- PHP >=8.1
- Laravel >= 5
if you use PHP 7.4, please make sure to use v0.1.2
if you use PHP 8.0, please make sure to use v0.2.0
Installation
You can install the package via composer:
Usage
Create semantic and sanitized reference codes from any model by applying the trait
On the creating
event, it will generate a human readable code to the specified column
Configuration
Publish default configuration
Create config/codegen.php
file, where you can adjust a few settings:
Custom configuration per model
Override custom configuration for a single model.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of codegen-laravel with dependencies
macmotp/codegen Version ^0.2.0
spatie/laravel-package-tools Version ^1.15