Gartner Cloud DBMS Report Names MarkLogic a Visionary

MarkLogic Labs PHP API

Attention PHP developers!

PHP

You can build powerful search applications in PHP using MarkLogic Server with an open source PHP API, called MLPHP. The API makes it easy for PHP developers to store documents, manage document metadata, and create sophisticated search queries on a web server running PHP 5.3 or later. It communicates with MarkLogic using the server’s REST API, available in MarkLogic 6 or later.

The PHP API is available for download at GitHub. See the INSTALL.txt file to get started and then check out the API Docs. After installing the PHP API, 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 MLPHPSearch($client);
$results = $search->retrieve('cat');

MLPHP is a work-in-progress. If you have questions or want to provide some feedback, you can file issues at GitHub, or drop me a line directly at mike.wooldridge AT marklogic dot com.

To download MarkLogic Server and use the free Express license, go here.

(If you want to build applications in Java, MarkLogic also has a great Java API.)

 

 

Mike Wooldridge is a Senior Software Engineer at MarkLogic. He has built some of the software tools that ship with MarkLogic, including Monitoring History, and has authored open-source projects such as MLPHP. Mike is the coauthor of the latest edition of Inside MarkLogic Server and has also written books for Wiley on graphics software and web design, including Teach Yourself Visually Photoshop CC and Teach Yourself Visually HTML5.

Start a discussion

Connect with the community

STACK OVERFLOW

EVENTS

GITHUB COMMUNITY

Most Recent

View All

Digital Acceleration Series: Powering MDM with MarkLogic

Our next event series covers key aspects of MDM including data integration, third-party data, data governance, and data security -- and how MarkLogic brings all of these elements together in one future-facing, agile MDM data hub.
Read Article

Of Data Warehouses, Data Marts, Data Lakes … and Data Hubs

New technology solutions arise in response to new business needs. Learn why a data hub platform makes the most sense for complex data.
Read Article

5 Key Findings from MarkLogic-Sponsored Financial Data Leaders Study

Financial institutions differ in their levels of maturity in managing and utilizing their enterprise data. To understand trends and winning strategies in getting the greatest value from this data, we recently co-sponsored a survey with the Financial Information Management WBR Insights research division.
Read Article
This website uses cookies.

By continuing to use this website you are giving consent to cookies being used in accordance with the MarkLogic Privacy Statement.