Download the PHP
package gomoob/php-embedded-mongo without Composer
On this page you can find all versions of the php package
gomoob/php-embedded-mongo. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor gomoob Package php-embedded-mongo Short Description Start an embedded Mongo DB server and run your PHPUnit integration tests easily. License
MIT
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Start an embedded Mongo DB server and run your PHPUnit integration tests easily.
Writing integration tests using Mongo DB and PHP should be easy (it is in Java), this library allows you to quickly
start an embedded Mongo DB server before running your tests.
Install
The library starts a real Mongo DB server so you must have Java installed, then install the library using composer.
Quick sample
Easy, isn't it ?
Notes
This library is not complete neither stable, if you want us to improve it feel free to post a Github issue.
Here are important things to know about the behavior of the server :
For now port numbers are not configurable, 2 ports are used 4309 and 27017 and must be free ;
Port 27017 is used by the Mongo DB process (remember the library uses a real Mongo server) ;
Port 4309 allows to send commands to a Java process which drives the Mongo DB process ;
Log outputs location is not configurable, it default to output.log.
Release history
0.0.1-alpha2 (2015-10-29)
First very basic UNIX support.
0.0.1-alpha1 (2015-10-28)
First alpha version.
All versions of php-embedded-mongo with dependencies
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package gomoob/php-embedded-mongo contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.