neo-arno/sugar-rest-bundle

A Symfony2 bundle for the access SugarCRM REST API

dev-master 2016-07-15 08:21 UTC

This package is not auto-updated.

Last update: 2024-04-23 03:32:47 UTC


README

A Symfony2 bundle for the access SugarCRM REST API

##Installation

Add SugarRESTBundle in your composer.json:

{
    "require": {
        "neo-arno/sugar-rest-bundle": "dev-master",
        ...
    }
}

Update your application

$ php composer.phar update neo-arno/sugar-rest-bundle

Now the bundle is installed in your vendor/neo-arno/sugar-rest-bundle directory

Enable the bundle in the AppKernel.php file :

    $bundles = array(
        // ...
        new NeoArno\sugarRESTBundle\sugarRESTBundle(),
    );

This bundle use a rest client bundle : "leaseweb/api-caller-bundle" And you can use rest API bundle you want ;-) see documentation for more information ...

Now just initialize the REST URL for your SugarCRM instance in Resources/config/services.yml

    // ...
    rest_url: "http://<your-sugarcrm-instance-url>/service/v4_1/rest.php"
    api_version: "4.1"

the api_version parameter isreserved for a futur use

##Documentation

Retrieve documentation on my website : http://blog.neoarno.com/wp-content/uploads/2013/08/SugarCRMRESTBundle-DevDoc-0.2.pdf