PHP code example of phpinnacle / minos

1. Go to this page and download the library: Download phpinnacle/minos 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/ */

    

phpinnacle / minos example snippets


use PHPinnacle\Minos\MinosPlugin;
use PHPinnacle\Minos\Payments\Cash;
use PHPinnacle\Minos\Payments\Stripe;

$panel->plugin(
    MinosPlugin::make()->providers(
        new Cash(),
        new Stripe(),
    ),
);

use PHPinnacle\Minos\Models\Adjustment;

$adjustment = Adjustment::discount('Campaign', $discount);
$newTotal = $adjustment->apply($subtotal);
bash
composer vendor:publish --tag="phpinnacle-minos-migrations"
php artisan migrate