MLPHP is a set of PHP classes that provide connectivity to MarkLogic via PHP.
The API includes
After installing and configuring MLPHP, you can load documents into MarkLogic with just a couple lines of PHP code:
$document = new MLPHPDocument($client); $document->setContentFile('myfile.xml')->write('/myfile.xml');
Searching is just as easy:
$search = new MLPHP\Search($client); $results = $search->retrieve('cat');
Installation instructions are here