sashalenz/delivery-auto-api

0.3.0 2023-03-21 12:25 UTC

This package is not auto-updated.

Last update: 2024-11-13 18:32:52 UTC


README

Latest Version on Packagist Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require sashalenz/delivery-auto-api

You can publish and run the migrations with:

php artisan vendor:publish --provider="Sashalenz\DeliveryAuto\DeliveryServiceProvider" --tag="delivery-api-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="Sashalenz\DeliveryAuto\DeliveryServiceProvider" --tag="delivery-api-config"

This is the contents of the published config file:

return [
    'url' => env('DELIVERY_API_URL', 'https://delivery-auto.com/api/'),

    'public_key' => env('DELIVERY_API_PUBLIC_KEY', null),
    'secret_key' => env('DELIVERY_API_SECRET_KEY', null),
    
    'culture' => env('DELIVERY_API_CULTURE', 'RU_ru')
];

Usage

$delivery = new Sashalenz\DeliveryAuto();
echo $delivery->echoPhrase('Hello, sashalenz!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.