How to Use Queries Using PHP

Introduction If you’re a PHP developer who plans to work with MongoDB, you’ll probably need to query a MongoDB collection from a script at some point. Fortunately, MongoDB has an extensive query language, allowing you to create complex queries that return the exact data you need. In this article, we will demonstrate several examples of … Continued

How to Sort Queries in MongoDB Using PHP

Introduction If you’re a PHP developer working with MongoDB, you know that sometimes you want the results of a query returned in a specific order. For example, let’s say you’re querying a collection of student information– you may want to return a list of student names sorted alphabetically, or you may want the results returned … Continued

How to Limit the Query Results in MongoDB using PHP

Introduction If you’re a PHP developer working with MongoDB, you know how easy it is to query the database from your PHP application. However, there may be certain situations where you want to limit the results you get from MongoDB– for example, you might want to get just a single result or a maximum of … Continued

How to Update MongoDB Document using PHP

Introduction MongoDB is an open-source database developed by MongoDB that stores data as documents in a binary representation, or Binary JSON, called BSON. The data objects are stored as individual documents inside a collection of documents. As such, updating MongoDB Document using PHP can be done one at a time or in groups. You will … Continued

How to Perform CRUD in MongoDB Document using PHP Part4

Introduction In this tutorial which is part 4 of “How to Perform CRUD in MongoDB Document using PHP,” we’ll explain how to delete a MongoDB document using PHP MongoDBDriverBulkWrite. It’s a fact that the basics of application development include the ability to achieve CRUD (Create, Read, Update, Delete). The “D” is the practice of deleting … Continued

How to Perform CRUD in MongoDB Document using PHP Part 1

Introduction The concept of CRUD (Create, Read, Update, Delete) is to equip developers with the necessary code to create APIs (a set of functions) that run applications, or a service. CRUD is the basis for that. You can do that with MongoDB. Let’s begin by creating and inserting documents using PHP MongoDB. Then we’ll edit … Continued

How to Perform CRUD in MongoDB Document using PHP Part 2

Introduction If you’re using MongoDB to store data, you’ll need to be able to perform common operations such as reading, updating and deleting documents. These tasks are quick and simple to accomplish using PHP, as long as your version of PHP is compatible and properly configured. In this step-by-step tutorial, we’ll look at an example … Continued

How To Use The Search API For The Elasticsearch PHP Client

Introduction If you’re using Elasticsearch to store documents, you’re going to need to search that data in different ways. Elasticsearch is known for its powerful, efficient search capabilities, and the PHP client for Elasticsearch makes it possible to harness those search capabilities from a PHP script. This step-by-step tutorial will explain how to perform different … Continued

How to index data in Elasticsearch using the PHP client library

Introduction: If you’re looking for a powerful full-text search engine, Elasticsearch is the logical choice. Elasticsearch offers users an official API for a few different languages, including PHP. The PHP library offers a simplified interface that maps closely with PHP syntax and makes it easy to perform Elasticsearch-related tasks like indexing, retrieving and deleting documents. … Continued

How To Install PHP Client For Elasticsearch On Windows

Introduction In this guide, it will be explained how to install PHP client Elasticsearch Windows OS. This is one of a list of tools found in the Elastic Stack. The steps below will walk the user through a complete setup for Windows. The PHP client will enhance the accuracy of retrieved data through Elasticsearch. Follow … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.