PHPackages                             isom/code-maker - 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. isom/code-maker

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

isom/code-maker
===============

CodeMakerBundle is a very simple and powerful coding system that will allow you to implement a completely custom coding strategy for your entities.

1.0.0(7y ago)3257MITPHPPHP &gt;=5.5.9

Since Dec 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/isomT/CodeMakerBundle)[ Packagist](https://packagist.org/packages/isom/code-maker)[ RSS](/packages/isom-code-maker/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

CodeMakerBundle
===============

[](#codemakerbundle)

While developing management applications, we often face a lot of difficulties when implementing a dynamic coding system for our entities such as (customers, suppliers, invoices, products, ...). That's where CodeMaker will make your life mutch easier by offering you a very simple yet powerful coding system.

Installation
============

[](#installation)

1. `composer require isom/code-maker`
2. Enable the bundle in AppKernel.php `new SBC\CodeMakerBundle\CodeMakerBundle()`
3. Add this in `config/routing.yml````
    code_maker:
        resource: "@CodeMakerBundle/Controller/"
        type: annotation
        prefix: /code-maker
    ```
4. Add this in `config/config.yml````
    # Code maker Configuration
    code_maker:
        auto_update_id: true
        respect_pattern: true
        cm_form_template: 'native' #by default native|material|altair
        cm_base_layout: '@your-base-layout.html.twig'
    ```
5. Run `php bin/console doctrine:schema:update --force`

Usage
=====

[](#usage)

Now let's say that you have an entity called `Product` and you want to generate a new custom string id every time when a new product is created, then you need to do the following things:

1. Step 1
---------

[](#1-step-1)

Create your `Product` entity and implement the `CodeMaker` annotation

```
