dfnder/dfnder.php.sdk

dfnder.com php SDK, symfony compatible

dev-master 2016-09-22 02:01 UTC

This package is not auto-updated.

Last update: 2024-05-11 18:12:47 UTC


README

dfnder.com integration for PHP and Symfony2+

This SDK allows you to integrate with the dfnder.com API in a easy way

To install using composer

composer require dfnder/dfnder.php.sdk dev-master

Symfony2+ integration

  1. Install the dependency with composer as shown above

  2. add the next lines to app/config/services.yml in order to install the service injections

    services: #... your services dfnder.card_processor: class: DfnderSDK\DependencyInjection\DfnderService #... your services

  3. Use it in your controller

    render('default/show_card_form.html.twig', []); } /** * @Route("/charge", name="process_card_form") * @Method("POST") */ public function processFormAction(Request $request) { $this->get('dfnder.card_processor'); die(print_r($request->request, true)); //return $this->render('default/show_card_form.html.twig', []); } }