PHP code example of mouctar / orange-money-bundle

1. Go to this page and download the library: Download mouctar/orange-money-bundle 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/ */

    

mouctar / orange-money-bundle example snippets


// app/AppKernel.php
public function registerBundles()
{
    return [
        // ...
        new Tm\OrangeMoneyBundle\OrangeMoneyBundle(),
        // ...
    ];
}


// src/Controller/LuckyController.php
namespace App\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;

class PublicKeyController extends AbstractController
{
    public function fetch(PublicKeyService $service): JsonResponse
    {
        return new JsonResponse($service());
    }
}