Download the PHP package yassineche/laravel-dokan without Composer
On this page you can find all versions of the php package yassineche/laravel-dokan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yassineche/laravel-dokan
More information about yassineche/laravel-dokan
Files in yassineche/laravel-dokan
Package laravel-dokan
Short Description The Dokan-Laravel API Connector Package is a powerful integration solution that enables seamless communication between the Dokan plugin for WordPress and your Laravel API. This package empowers developers to effortlessly synchronize and exchange data between their WordPress-based marketplace and their Laravel-powered backend.
License MIT
Homepage https://github.com/yassineche/laravel-dokan
Informations about the package laravel-dokan
Laravel-Dokan
The Laravel-Dokan package is a powerful integration solution that enables seamless communication between the Dokan plugin for WordPress and your Laravel API. It allows developers to effortlessly synchronize and exchange data between their WordPress-based marketplace and their Laravel-powered backend.
Key Features:
- Easy integration with Dokan plugin for WordPress.
- Seamless communication between WordPress and Laravel API.
- Synchronization of data between the marketplace and backend.
Installation
Step 1: Package installation
You can install the Laravel-Dokan package via Composer. Run the following command in your terminal:
Step 2: Publish the Laravel-Dokan Configuration
To customize and configure the Laravel-Dokan package, you need to publish its configuration file. This will allow you to modify the package's settings according to your needs. Follow the steps below:
- Open your terminal or command prompt.
- Run the following command:
Step 3: Install and Configure JWT Authentication for WordPress
To enable seamless communication between the Laravel-Dokan package and your WordPress API, you need to install and configure the JWT Authentication for WP REST
plugin. This plugin provides JWT authentication capabilities to your WordPress installation. Follow the steps below:
-
1 - Install the "JWT Authentication for WP REST" plugin in your WordPress installation.
-
2 - Activate the plugin in the WordPress admin dashboard.
-
3 - Configure the plugin settings. You may need to generate a secret key and set the authentication endpoint URL.
- 4 - Save the changes and ensure that JWT authentication is enabled.
For detailed instructions on installing and configuring the "JWT Authentication for WP REST" plugin, you can refer to this video tutorial: JWT Authentication for WP REST Tutorial
Once you have successfully installed and configured JWT authentication for WordPress, you can proceed to integrate it with the Laravel-Dokan package.
Step 4: Configure the Laravel-Dokan Package
To configure the Laravel-Dokan package, you need to edit the dokan.php
configuration file. This file contains various options that allow you to customize the package`s behavior. Follow the steps below:
-
Locate the
config/dokan.php
file in your Laravel application. -
Open the
dokan.php
file in a text editor. -
Inside the file, you will find a section named "STORE CONFIGURATION." This section contains the following configuration options:
-
token
: This option should be set to the generated JWT Authentication for WordPress token. You can obtain this token by following the instructions provided in Step 2. store_url
: This option should be set to the URL of your WordPress installation. This is the base URL where your Dokan-powered store is located.
-
- Update the values of
token
andstore_url
according to your specific configuration. Make sure to save the changes.
Once you have edited the dokan.php
configuration file, the Laravel-Dokan package will be properly configured to communicate with your Dokan-powered store.
Usage
To use the Laravel-Dokan package, you can leverage the provided interfaces and classes to interact with the Dokan API and retrieve/store data from/to your Dokan-powered store. Here`s an example of how you can use the package in your Laravel application:
-
LaravelDokanProduct
Facade : -
LaravelDokanProductVariations
Facade : -
LaravelDokanCoupon
Facade : -
LaravelDokanAttribute
Facade : -
LaravelDokanAttributeTerm
Facade : -
LaravelDokanOrder
Facade : -
LaravelDokanOrderNote
Facade : -
LaravelDokanReport
Facade : -
LaravelDokanReview
Facade : -
LaravelDokanStore
Facade : -
LaravelDokanWithdraw
Facade : LaravelDokanSetting
Facade :
Notes
- All functions are returning an array of created, updated, deleted, or read data.
- In case of a bad request, no data, or a failure in the Laravel-Dokan API will throw a DokanApiException exception.
Conclusion
the Laravel-Dokan package provides a comprehensive set of classes and interfaces for interacting with the Dokan API in Laravel applications. The package includes modules for handling various aspects of the Dokan platform, such as orders, order notes, reports, reviews, stores, withdrawals, and settings...
Throughout the package, the methods are designed to retrieve, create, update, or delete data from the Dokan API. The methods return arrays containing the relevant data upon successful API calls. However, in case of a bad request, no data, or failure in the Dokan API, the package throws a DokanApiException exception. This exception provides detailed error information and can be caught and handled within your application.
The package aims to provide a seamless integration between Laravel and the Dokan platform, allowing developers to build robust applications with Dokan functionalities. It offers flexibility and extensibility through its use of interfaces, making it easy to customize and extend the package to suit specific project requirements.
By utilizing the Laravel-Dokan package, developers can leverage the power of Laravel's ecosystem while seamlessly integrating with the Dokan platform, enabling efficient development of e-commerce applications with Dokan support.
I hope this summary provides you with a clear understanding of the Laravel-Dokan package and its capabilities.
If you encounter any issues or have suggestions for improvement, please feel free to open an issue on the GitHub repository for the Laravel-Dokan package. The repository is the central place for discussion, bug reports, feature requests, and collaboration. Your feedback is valuable in enhancing the package and addressing any concerns.
All versions of laravel-dokan with dependencies
guzzlehttp/guzzle Version ^7.7
illuminate/contracts Version ^10.0
spatie/laravel-package-tools Version ^1.14.0
spatie/php-structure-discoverer Version ^1.1