Get started with SixShop Maker Bundle in minutes!
# Install as development dependency
composer require six-shop/maker-bundle --dev
# Or install globally
composer global require six-shop/maker-bundle
git clone https://github.com/sixshop/maker-bundle.git
cd maker-bundle
composer install
# Check if command is available
php vendor/bin/sixshop-maker --help
# List all available commands
php vendor/bin/sixshop-maker list
# Run basic tests
php tests/simple_test.php
php vendor/bin/sixshop-maker create_extension
Follow the interactive prompts to:
sixshop/my-extension)SixShop\MyExtension\)Note: You can run php vendor/bin/sixshop-maker without arguments to see all available commands.
php vendor/bin/sixshop-maker create_migration
Interactive workflow:
products)# Start migration creation
php vendor/bin/sixshop-maker create_migration
# When prompted, enter:
# - Table: users
# - Fields:
# - username (string, length: 100, not null, unique)
# - email (string, length: 255, not null, unique)
# - password (string, length: 255, not null)
# - status (integer, default: 1, not null)
After running the generators, you'll have:
my-extension/
├── composer.json # Package configuration
├── database/
│ └── migrations/ # Database migration files
├── src/
│ ├── Controller/
│ │ ├── Admin/ # Admin interface controllers
│ │ └── Api/ # REST API controllers
│ ├── Entity/ # Business logic entities
│ └── Model/ # ThinkPHP models
├── route/
│ ├── admin.php # Admin routes
│ └── api.php # API routes
├── config.php # Extension configuration
└── info.php # Extension metadata
# Extension generation
php vendor/bin/sixshop-maker create_extension
# Migration generation
php vendor/bin/sixshop-maker create_migration
# Get help
php vendor/bin/sixshop-maker --help
# List commands
php vendor/bin/sixshop-maker list
# Run tests
php tests/simple_test.php
# Run comprehensive demo
php test/comprehensive_demo.php
If you have an existing composer.json, the tool will:
Supported database field types:
string (varchar with length)text (long text)integer / bigintegerdecimal (with precision/scale)booleanjsontimestamp / datetime / date / timeRequest $request and entity parametersgetOptions() pattern for ThinkPHP 8.xRoute::resource() syntaxTemplates are located in /templates/ directory:
$namespace, $tableName, $entityName, etc.# Make binary executable
chmod +x vendor/bin/sixshop-maker
# Check directory permissions
ls -la vendor/bin/
# Regenerate autoload
composer dump-autoload
# Check installation
composer show six-shop/maker-bundle
database/migrations directory existsphp test/comprehensive_demo.php for examples/templates/ to match your standardsThe SixShop Maker Bundle is now ready to accelerate your development workflow. Generate migrations, models, entities, and controllers in seconds instead of hours!
Need Help?