PHP & MongoDB – Display Collections First step to do any operation is to create a Manager instance. // Connect to MongoDB using Manager Instance $manager = new MongoDBDriverManager(“mongodb://localhost:27017”); Second step is to prepare and execute a command on a database to show the list of collections available. // Create a Command Instance $collectionList = […]
Category Archives: php Mongodb
PHP & MongoDB – Show Databases First step to do any operation is to create a Manager instance. // Connect to MongoDB using Manager Instance $manager = new MongoDBDriverManager(“mongodb://localhost:27017”); Second step is to prepare and execute a command on a database to show the list of databases available. // Create a Command Instance $databaseList = […]