Download the PHP package mawelous/yamop-laravel without Composer

On this page you can find all versions of the php package mawelous/yamop-laravel. 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 yamop-laravel

Yamop for Laravel

Yet another MongoDB ODM for PHP as Laravel Component

What's that?

This is yet another, open source, and very simple MongoDB ODM for Laravel 4. It works like the standard MongoDB PHP extension interface but returns objects instead of arrays (as ODM). Queries stay the same. One of its coolest features are joins which allow you to query for related objects. This version for Laravel is based on Yamop which can be included into any PHP project. In addition to the standard features it supports Laravel based authentication.

Requirements

Installation

You can simply download it here or use Composer.

In the require key inside the composer.json file add the following

Save it and run the Composer update command

$ composer update

After this is done, add mongo in your database configuration:

Now we need to let Laravel know about this new service provider. To do so add under providers in the config\app.php file the following:

Aliases to the Yamop classes are useful. Add them in the aliases array in the config\app.php file:

To use Yamop you now just need to extend the Yamop alias Model from within any of your new or existing models:

That's it!

Usage

For usage examples and further explanation take a look at the Yamop Documentation. In this release for Laravel you can also use aliases for Mapper and Model which were registered during installation. See the following pagination example.

Pagination

Yamop for Laravel supports pagination out of the box. It implements the _createPaginator method and extends getPaginator, with this you only need to pass the items per page into the method. The second parameter which is the current page number, and the third which is the page parameter name are both optional.

Authentication

Laravel's package of Yamop supports native like authentication. You must first extend your User Model with Yamop's Mawelous\YampoLaravel\User

In auth\config.php change the driver to yamop.

Now you can implement it as standard authentication:

Issues

Any issues or questions please report here

License

Yamop is free software distributed under the terms of the MIT license


All versions of yamop-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
mawelous/yamop Version 0.2.0
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 mawelous/yamop-laravel contains the following files

Loading the files please wait ....