PHP code example of cdmanager / magento-short-order-number

1. Go to this page and download the library: Download cdmanager/magento-short-order-number 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/ */

    

cdmanager / magento-short-order-number example snippets


├── registration.php
├── etc/
│   ├── module.xml                          # depends on Magento_Sales, Magento_SalesSequence
│   ├── di.xml                              # plugin on SalesSequence\Model\Manager
│   ├── config.xml                          # default enabled=1, offset=99500000
│   └── adminhtml/system.xml                # admin fields under Sales → Sales
├── Model/
│   ├── Config.php                          # scoped config reader
│   └── ShortSequence.php                   # sequence decorator, offset + safety rules
├── Plugin/
│   └── ShortenOrderSequence.php            # wraps the 'order' sequence only
└── Test/Unit/Model/ShortSequenceTest.php