Download the PHP package bored-programmers/laravel-wolt without Composer
On this page you can find all versions of the php package bored-programmers/laravel-wolt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bored-programmers/laravel-wolt
More information about bored-programmers/laravel-wolt
Files in bored-programmers/laravel-wolt
Package laravel-wolt
Short Description Wolt is a Laravel package that allows you to integrate your restaurant with the Wolt platform. It provides a simple and easy-to-use API for syncing your menu and managing orders.
License MIT
Informations about the package laravel-wolt
Laravel Wolt API Integration
Wolt is a Laravel package that allows you to integrate your restaurant with the Wolt platform. It provides a simple and easy-to-use API for syncing your menu and managing orders.
Table of Contents
- Requirements
- Installation
- Usage
- Sync Menu
- Get Order
- Accept Order
- Reject Order
- Mark Order as Ready
- Mark Order as Delivered
- Confirm Preorder
- Contribution Guidelines
- Changelog
- License
- Contact Information
- Acknowledgments
Requirements
- PHP 8.1 or higher
- Laravel 10.0 or higher
Installation
To install Wolt, you need to run the following command:
Publish the configuration file and set up your environment variables.
Update your .env
file with the following variables:
Usage
Sync Menu
To sync your menu with Wolt, use the WoltService::syncMenu
method.
Here is an example of how you can use the DTOs to create a menu and sync it with Wolt.
Get Order
To retrieve an order, use the WoltService::getOrder
method.
You will get Order ID from your webhook called by Wolt.
More about it > here: Wolt Webhook Documentation.I recommend using
spatie/laravel-webhook-client
package for handling webhooks.
Accept Order
To accept an order, use the WoltService::acceptOrder
method.
Reject Order
To reject an order, use the WoltService::rejectOrder
method.
Mark Order as Ready
To mark an order as ready, use the WoltService::markReadyOrder
method.
Mark Order as Delivered
To mark an order as delivered, use the WoltService::markDeliveredOrder
method.
Confirm Preorder
To confirm a preorder, use the WoltService::confirmPreorder
method.
Contribution Guidelines
We welcome contributions to Wolt. If you'd like to contribute, please fork the repository, make your changes, and submit a pull request. We have a few requirements for contributions:
- Follow the PSR-2 coding standard.
- Only use pull requests for contributions.
Changelog
For a detailed history of changes, see releases on GitHub.
License
This project is licensed under the MIT license.
Contact Information
For any questions or concerns, please feel free to create a discussion on GitHub.
Credits
Created by Matěj Černý from Bored Programmers.
Acknowledgments
We would like to thank all the contributors who have helped to make Wolt a better package.