Download the PHP package radnan/rdn-factory without Composer

On this page you can find all versions of the php package radnan/rdn-factory. 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 rdn-factory

RdnFactory

The RdnFactory ZF2 module makes it really easy to create factory classes.

How to install

  1. Use composer to require the radnan/rdn-factory package:

    $ composer require radnan/rdn-factory:1.*
  2. Activate the module by including it in your application.config.php file:

This abstract factory has access to a repository of plugins, similar to a controller. Simply call the plugin as if you were calling a method:

namespace FooModule\Factory\Controller;

use FooModule\Controller;
use RdnFactory\AbstractFactory;

class Bar extends AbstractFactory
{
    protected function create()
    {
        $config = $this->config('foo', 'bar');
        $modules = $this->service('ModuleManager');

        return new Controller\Bar($config, $modules);
    }
}

config(...$key)

Get configuration by key. You can pass multiple keys to traverse nested configuration items.

// grab the 'display_exceptions' item inside the 'view_manager' array
$config = $this->config('view_manager', 'display_exceptions');

controller($name)

Get the controller with the given name.

$controller = $this->controller('FooModule:BarController');

form($name)

Get a form/fieldset/element with the given name.

$collection = $this->form('Collection');

$form = $this->form('FooModule:BarForm');

params($name)

Get a route parameter value.

$id = $this->params('bar-id');

service($name)

Get a service from the top-level service locator (service manager).

$app = $this->service('Application');

$view = $this->service('ViewRenderer');

$uploads = $this->service('RdnUpload\Container');

url($route = null, $params = array(), $options = array(), $reuseMatchedParams = false)

This is just a proxy to the url()->fromRoute() controller plugin. Useful for generating URLs from within a factory.

$apiUrl = $this->url('foo/api/search/user');

All versions of rdn-factory with dependencies

PHP Build Version
Package Version
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 radnan/rdn-factory contains the following files

Loading the files please wait ....