Download the PHP package rogerthomas84/ohdm without Composer

On this page you can find all versions of the php package rogerthomas84/ohdm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

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.
Please rate this library. Is it a good library?

Informations about the package ohdm

Build Status

View on Packagist

OhDM

OhDM is a an ODM which is a simple PHP library that eases the pain of interacting with MongoDB.

Stability

OhDM is a new project, so some things won't work as expected. It's classified right now as in the early stages, and there is a version 1.0.0 which we're classing as stable.

Saying that, things will be introduced to help enhance the library further but it'll be versioned accordingly.

Help Out

The easiest way to help is by forking and raising a PR. All I ask is that you contribute changes back to this repository.

Changes won't be merged unless you've tested (and written tests) for the changes made. We also strive for high test coverage.

Right now, we're sitting at 99.33% coverage, and we would really like to stay around there.

Quick Start

To get started quickly, first you're going to need to setup the configuration object. It's a singleton.

Now you'll need a Collection model. Something like this:

Introduction to Queries

Create a document

Find By ID

The quickest form of find is when you know an objects _id. OhDM exploits this and implements a quick and easy way to locate them.

Find By Query

OhDM supports finding documents by advanced querying which will also return the item in object form. Spoiler alert: it's as easy as it looks below!

Delete

Delete can be called on any saved document and it will be removed from the database.

Update

As it's an object, just alter the variables and call save() against it.


All versions of ohdm with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
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 rogerthomas84/ohdm contains the following files

Loading the files please wait ....