PHP code example of nubitio / sequence-bundle
1. Go to this page and download the library: Download nubitio/sequence-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nubitio / sequence-bundle example snippets
use Nubit\SequenceBundle\Attribute\Sequence;
#[Sequence(field: 'number', name: 'order', prefix: 'ORD-', padding: 4, scope: ['restaurant'])]
class Order
{
// number is allocated on POST when left empty
}