Skip to content

This is a sample application that implements CRUD operations with mongoDB and PHP using the mongo php library.

License

Notifications You must be signed in to change notification settings

habyphael/php-mongodb-crud-operations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

php-mongodb-crud-operations

This is a sample application that implements CRUD operations with mongoDB and PHP using the mongo php library.

This sample application uses php and mongoDB. It demonstrates the implementation of CRUD operations while working with php and mongoDB using the mongoDB php library.

The project contains the views, the main stylesheet, basic back-end logic and packages for the MongoDB PHP library.

Prerequisites

Install Mongo on your machine.
You can download mongo here https://www.mongodb.com/download-center#community

Set up MongoDB Driver for PHP:
Check the version of the driver that is compatible to your php version MongoDB PHP Drivers
More information on how to install the mongodriver for php

Add the mongo php library in case you mustMongoDB PHP Library

Running

Paste a copy of the repo to an apache server such as wamp or xampp.
Run the apache and mongo server.
You can install a data visualisation tool such as Robomongo to see the results of the CRUD operations.
This project comes with the mongo php library packages. You can change the dbname in the dbcontext.php file and add more modules as you see fit in a copy of the repo.

About

This is a sample application that implements CRUD operations with mongoDB and PHP using the mongo php library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages