Plutu Documentation
  • API Documentation
    • Introduction
    • Authentication
      • IP Whitelist
    • Payments
      • Sadad
      • Adfali
      • Local Bank Cards
      • MPGS
      • T-Lync Service
    • Errors
    • Testing
  • SDKs
    • Plutu PHP
    • Plutu Laravel
  • Plugins and extensions
    • Plutu WooCommerce
    • Plutu Formidable
    • Plutu OpenCart
Powered by GitBook
On this page
  • Getting started
  • Requirements
  • Installation
  • Publish Configuration
  • Examples

Was this helpful?

  1. SDKs

Plutu Laravel

Plutu Laravel is the official package that builds upon the Plutu PHP package to simplify the integration of Plutu services into Laravel applications.

PreviousPlutu PHP

Last updated 2 years ago

Was this helpful?

To access detailed documentation and comprehensive information about Plutu Laravel, please refer to the Github repository.

Getting started

Requirements

  • PHP version 8.0 or higher

  • Laravel version 9 or higher"

Installation

You can install the Plutu Laravel package via Composer by running the following command:

composer require plutu/plutu-laravel

Publish Configuration

To publish the configuration file of Plutu Laravel package, run the following command:

php artisan vendor:publish --provider="PlutuLaravel\Providers\PlutuServiceProvider"

This command will publish the plutu.php configuration file to the config directory of your application.

You can then configure the package by setting the following environment variables in your .env file:

PLUTU_API_KEY=your_api_key
PLUTU_ACCESS_TOKEN=your_access_token
PLUTU_SECRET_KEY=your_secret_key

Alternatively, you can directly edit the config/plutu.php configuration file that was published to your application.

Examples

Make sure to replace your_api_key, your_access_token, and your_secret_key with your own API credentials provided by in your merchant account.

You can find examples in the package's main documentation here:

Plutu Laravel
Plutu
Plutu PHP