Solutions

Stay on top of everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

Learn

Stay on top of everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

Community

Stay on top of everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

Company

Stay on top of everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

MLPHP

down arrow Code & Downloads

MLPHP MLPHP is a set of PHP classes that provide connectivity to MarkLogic via PHP.

MLPHP comes with API documentation and code examples to get you going. It communicates with MarkLogic using the server's REST API. It requires MarkLogic 6 or later.

The API includes

  • Documents and metadata storage and management
  • String-based, "google-style", one-box search
  • Search-option configuration

After installing and configuring MLPHP, you can load documents into MarkLogic with just a couple lines of PHP code:

$document = new MLPHP\Document($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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.