Download the PHP package mongator/behaviors without Composer
On this page you can find all versions of the php package mongator/behaviors. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mongator/behaviors
More information about mongator/behaviors
Files in mongator/behaviors
Download mongator/behaviors
More information about mongator/behaviors
Files in mongator/behaviors
Vendor mongator
Package behaviors
Short Description Bahaviors for Mongator, the Simple, powerful and ultrafast Object Document Mapper (ODM) for PHP and MongoDB
License MIT
Homepage http://mongator.org/
Package behaviors
Short Description Bahaviors for Mongator, the Simple, powerful and ultrafast Object Document Mapper (ODM) for PHP and MongoDB
License MIT
Homepage http://mongator.org/
Please rate this library. Is it a good library?
Informations about the package behaviors
Mongator Behaviors
These are the official behaviors of Mongator.
- Timestampable: Saves the creation and/or update date in the documents.
- Ipable: Saves the IP from where documents are created and/or saved.
- Sluggable: Saves the slug of a field in the documents.
- Archivable: Saves a document copy from one collection to another.
- Tokenizable: Generates a token on creation.
- Hasable: Generates a hash for given fields/rels/embs from the given document, on update and/or creation.
- AUTO_INCREMENT in MySQL
- Identifiable: Automatically saves an identifier in the document.
- Stringifiable: Add to the document the magic method __toString, so any document can be converted to string.
- EmbeddedUniquable: Ensure unique embeddeds document in a embeddedsMany relation.
Requirements
- PHP 5.3.x;
- mongator/mongator
Installation
The recommended way of installing Mongator Behaviors is through composer. You can see package information on Packagist.
Examples
On your document definition just add a new array named behaviors, just like this:
Tests
Tests are in the tests
folder.
To run them, you need PHPUnit.
Example:
$ phpunit --configuration phpunit.xml.dist
License
MIT, see LICENSE
All versions of behaviors with dependencies
PHP Build Version
Package Version
The package mongator/behaviors contains the following files
Loading the files please wait ....