Download the PHP package inetprocess/sugarcrm-apiwrapper without Composer

On this page you can find all versions of the php package inetprocess/sugarcrm-apiwrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sugarcrm-apiwrapper

SugarCRM Api Wrapper

Install

Usage

BaseRequest

A basic class that initiate the Guzzle HTTP Client and provides the main methods for other class to do SugarCRM API Calls. You can use it directly but it's not recommanded. You can also build your own class based on that one.

Example Usage:

Other useful methods

The following methods allows you to take more control of the SugarAPIWrapper:

SugarClient

An extension of BaseRequest with wrappers for GET, POST, PUT and DELETE. It does an autologin and sends the right headers with the token automatically.

Init the client

POST To any Endpoint

PUT To any Endpoint

After doing the POST, do the following:

GET To any Endpoint

DELETE To any Endpoint

Use a Bulk request to send multiple requests in a single HTTP call

Get a new BulkRequest object

Send multiple requests

You can use the same functions as the SugarClient class to prepare your requests

Module

Wrappers for specific modules actions. It does an autologin and sends the right headers with the tokens automatically.

Init the client and the module classes

Count Records

Count Records by applying filters

Example of a count of notes with name = Test

Search records

Search Records by applying filters (the structure of filters is the same than for Count).

Example of a search that should retrieve a max of 10 notes with name = Test, ordered by name:

Retrieve one or multiple records

Retrieve a max of 10 records:

Retrieve a single record (throws a SugarAPIException if it does not Exists)

Create a record

Parameters:

Update a record

Parameters:

Delete a record

Parameters:

Set all related ids to a record

Parameters:

Download a file

Parameters:

The following example downloads a file and put its content to the $targetFile file

Upload a file

Parameters:

Dropdown

Retrieves the keys / values of a dropdown, in the current user (the one defined in setUserName) language.

Parameters:


All versions of sugarcrm-apiwrapper with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
guzzlehttp/guzzle Version ^6
webmozart/assert Version ^1.2
psr/log Version @stable
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package inetprocess/sugarcrm-apiwrapper contains the following files

Loading the files please wait ....