PHP code example of touhedul / properos-commerce

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

    

touhedul / properos-commerce example snippets


composer ation => https://github.com/properos/amazon-mws-laravel

composer ation => http://image.intervention.io/getting_started/introduction

composer ation => https://packagist.org/packages/authorizenet/authorizenet

composer ation => https://packagist.org/packages/doctrine/dbal

npm install moment 

    'providers' => [
        '...',
        Properos\Commerce\CommerceServiceProvider::class,
        '...'
    ]

    composer dump
    php artisan vendor:publish --force
Select -> Properos\Commerce\CommerceServiceProvider  
    php artisan storage:link

'mysql' => [
    'driver' => 'mysql',
    'host' => env('DB_HOST', '127.0.0.1'),
    'port' => env('DB_PORT', '3306'),
    'database' => env('DB_DATABASE', 'forge'),
    'username' => env('DB_USERNAME', 'forge'),
    'password' => env('DB_PASSWORD', ''),
    'unix_socket' => env('DB_SOCKET', ''),
    'charset' => 'utf8',
    'collation' => 'utf8_general_ci',
    'prefix' => '',
    'strict' => true,
    'engine' => 'Innodb',
],

php artisan migrate
    create  

use UserTrait;

ORDER_CREATED_MSG=""
ORDER_FULFILLED_MSG=""

SUBSCRIBER_WELCOME=""

CARD_PROCESSOR = authorize or stripe

AUTHORIZE_ENV=
AUTHORIZE_API_ID=
AUTHORIZE_PRIVATE_KEY=
AUTHORIZE_PUBLIC_KEY=

STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
STRIPE_STATEMENT_DESCRIPTOR=
STRIPE_API_URL=

PAYPAL=true
PAYPAL_ENV=
PAYPAL_ID=
PAYPAL_TOKEN=

USPS_TRACK_URL_LABEL = "https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1="
UPS_TRACK_URL = "https://wwwapps.ups.com/tracking/tracking.cgi?tracknum="
FEDEX_TRACK_URL = "https://www.fedex.com/apps/fedextrack/?action=track&trackingnumber="
DHL_US_TRACK_URL = "http://www.dhl.com/en/express/tracking.html?brand=DHL&AWB="
DHL_GLOBAL_TRACK_URL = "http://webtrack.dhlglobalmail.com/?trackingnumber="
USPS_TRACK_URL_CONFIRMATION = "http://www.stamps.com/shipstatus/submit/?confirmation="

UPS_API_INTEGRATION=
UPS_SHIPPING_API_ENV=
UPS_API_USER=
UPS_API_PASSWORD=
UPS_API_ACCESS_TOKEN=
UPS_API_ACCOUNT_NUMBER=
UPS_API_USER_ADDRESS=
UPS_API_USER_CITY=
UPS_API_USER_ZIP=
UPS_API_USER_STATE=
UPS_API_USER_COUNTRY=
UPS_SERVICES_ALLOWED=

ACTIVE_AMAZON=true
AMAZON_SELLER_ID=
AMAZON_MARKETPLACE_ID=
AMAZON_KEY_ID=
AMAZON_SECRET_KEY=
AMAZON_AWS_URL=
AMAZON_AUTH_TOKEN=
AMAZON_DISABLE_SSL=true

    $this->call(PaymentMethodsTableSeeder::class);
    $this->call(ShippingMethodsTableSeeder::class);

composer dump-autoload
php artisan db:seed
npm run watch