PHPackages                             inetprocess/libsugarcrm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. inetprocess/libsugarcrm

ActiveLibrary[API Development](/categories/api)

inetprocess/libsugarcrm
=======================

This library provides a various classes to interact with SugarCRM

v2.0.2(1y ago)89.1k5[1 issues](https://github.com/inetprocess/libsugarcrm/issues)[1 PRs](https://github.com/inetprocess/libsugarcrm/pulls)3Apache-2.0PHPPHP &gt;=7.0

Since Sep 2Pushed 11mo ago9 watchersCompare

[ Source](https://github.com/inetprocess/libsugarcrm)[ Packagist](https://packagist.org/packages/inetprocess/libsugarcrm)[ RSS](/packages/inetprocess-libsugarcrm/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (6)Versions (49)Used By (3)

inetprocess/libsugarcrm
=======================

[](#inetprocesslibsugarcrm)

That library allows anybody to interact with a SugarCRM application, outside that application. Suppose you need to do a importation script, running every night, with a very specific set of transformations or check. Then you need that kind of tools to be able to "Login" to SugarCRM, create or update beans, do SQL queries, etc ...

Warning
=======

[](#warning)

- Be very careful that Sugar doesn't do a very "clean" job so it's better to deactivate the strict standards erorr reporting in PHP to be able to use it. When I launch my script, I usualy do something like:

```
php -d 'error_reporting=E_ALL & ~E_STRICT'  test.php
```

- If you are not using my classes in another class (if you do like in examples below, directly calling the library), be more careful: **don't name your variables like sugar does, else you'll overwrite it** (example: *$db* or *$log*).
- Last but not the least: you'll be able to instanciate the EntryPoint for only one instance of Sugar ! It uses GLOBALS variable such as $GLOBALS\['db'\] and I let you imagine what will happen if it's overwritten by another Instance of SugarCRM ;)

Classes
=======

[](#classes)

Inet\\SugarCRM\\Application
---------------------------

[](#inetsugarcrmapplication)

Gives general information about SugarCRM Installation. Others classes depends on this one.

Usage Example:

```
