Download the PHP package inetprocess/libsugarcrm without Composer
On this page you can find all versions of the php package inetprocess/libsugarcrm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inetprocess/libsugarcrm
More information about inetprocess/libsugarcrm
Files in inetprocess/libsugarcrm
Package libsugarcrm
Short Description This library provides a various classes to interact with SugarCRM
License Apache-2.0
Informations about the package libsugarcrm
inetprocess/libsugarcrm
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
-
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:
-
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
Inet\SugarCRM\Application
Gives general information about SugarCRM Installation. Others classes depends on this one.
Usage Example:
Inet\SugarCRM\EntryPoint
It says where is Sugar and does the basic steps to "login" into SugarCRM. EntryPoint needs a logger because other classes log a lot of stuff. The EntryPoint can only be loaded once for the entire program.
Usage Example:
Inet\SugarCRM\Bean
Most complete class to :
- Get a list of available modules (getBeansList())
- Get an Bean (getBean())
- Create a Bean (newBean())
- Get a list of records for a module (getList())
- ...
Usage Example:
Inet\SugarCRM\BeanFactoryCache
Don't use it directly, it's directly used by Inet\SugarCRM\Bean to clean the cache during long loops.
Inet\SugarCRM\DB
Useful to query SugarCRM DB directly.
Usage Example:
Inet\SugarCRM\Utils
Various Utils to create labels, dropdown, encode or decode multiselect, etc...
Usage Example:
Inet\SugarCRM\SugarQueryIterator
Iterator class to iterate in a memory safe way SugarQuery results.
Usage Example: Loop records 100 to 300
All versions of libsugarcrm with dependencies
psr/log Version ~2.0
symfony/finder Version ~5
symfony/filesystem Version ~5
symfony/yaml Version ~5
symfony/process Version ^5