- ⌂ comand
- Configurations
- Methods
- Static Methods
comand
The comand class is the entry point to the COMAND PHP API.  It provides methods to connect to and discover COMAND repositories, and log and report events (ie. errors, warnings and notices).
comand is the root namespace of all core PHP API classes and models.  However, the comand class itself is not in a namespace.Configurations
The comand class relies on two configuration files on start-up and to connect to the repository.
Usage
Simple Example
$repo = comand::repo();
if(!$repo) {
	echo("Could not connect to repository.");
}
Advanced Example
use io_comand_repo\repo;
use io_comand_repo\storage\storage_engine;
$comand = new comand();
$repo = $comand->connect([
  'mode' => storage_engine::MODE_WORKING,
  'preload_content_types' => repo::PRELOAD_MIN_CONTENT_TYPES
]);
if(!$repo) {
    comand::log_error('Could not connect to repository.');
    comand::echo_event_log();
}
 webCOMAND Docs
webCOMAND Docs API Reference
API Reference PHP API
PHP API io_comand
io_comand