Download the PHP package zeebee/kohana-generator without Composer

On this page you can find all versions of the php package zeebee/kohana-generator. 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 kohana-generator

Generator for Kohana

This module, inspired by the Ruby on Rails tool of the same name, allows the automatic creation of application and module resources from templates using different configurable generators. It includes a versatile Builder class with a fluent interface for combining different generator types, and a set of Minion tasks for running generators from the command line.

Generator Builder

The Builder's fluent interface allows easy creation of different resource types. At its simplest, to create a Log class in APPPATH/classes/Log.php:

Generator::build()->add_class('Log')->execute();

Different resources can also be created in one command by combining generator types:

Generator::build()
    ->add_class('Logger_Log')
        ->implement('Countable')
        ->implement('ArrayAccess')
    ->add_class('Log')
        ->extend('Logger_Log')
        ->blank()
    ->add_unittest('Logger_Log')
        ->group('logger')
        ->group('logger.core')
    ->with_module('logger')
    ->execute();

In this example, a class is created with a stub for transparent extension in the 'logger' module directory, along with a skeleton unit test case for it. Global options can also be set on all the types added to the builder (in this case, the module name via with_module()).

See the Guide pages for more information on different types and examples of using the Builder in more complex cases. There are also plenty of examples in the Generator tasks.

Minion Tasks

The module includes a set of Minion tasks for running generators from the commmandline. Start here for help and common options:

./minion generate --help

And then enjoy creating your application or module resources in one line:

./minion generate:class --name=Logger_Log --stub=Log --module=logger

See also the Guide pages for more information about different generator tasks and their options.

Current tasks include: class, controller, model, view, unittest, task, generator, interface, guide, module, config, message, trait (PHP >= 5.4.0), etc.

Testing

This module is unit tested using the Unittest module. You can use the generator group to run only the generator tests. See also the files in the tests/fixtures directory for sample Minion commands and their generated output.

Requirements

The module was built against Kohana version 3.3, and requires Minion for running the tasks. Optional support for traits requires PHP >= 5.4.0.


All versions of kohana-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
composer/installers 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 zeebee/kohana-generator contains the following files

Loading the files please wait ...