Download the PHP package lazyants/toolkit-bundle without Composer

On this page you can find all versions of the php package lazyants/toolkit-bundle. 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 toolkit-bundle

LazyantsToolkitBundle

This bundle provides some of functionality used by a part of our projects

Installation

First you need to add lazyants/ToolkitBundle to composer.json:

{
    require: {
        ...
        "lazyants/toolkit-bundle": "dev-master"
    }
}

or direct via composer.phar:

./composer.phar require lazyants/ToolkitBundle:dev-master

You also have to add LazyantsToolkitBundle to your AppKernel.php:

// app/AppKernel.php
...
class AppKernel extends Kernel
{
    ...
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Lazyants\ToolkitBundle\LazyantsToolkitBundle()
        );
        ...

        return $bundles;
    }
    ...
}

Base template

LazyantsToolkitBundle::base.html.twig provides some abstract blocks, so you can you use it in your main layout, otherwise you will create probably the same structure anyway.

{% extends 'LazyantsToolkitBundle::base.html.twig' %}

Commands

Translation update command

To extract translations automatically for given bundles and locales (and delete duplicated fos user translations):

Sample configuration:

# app/config/config.yml
lazyants_toolkit:
    translation:
        bundles: [ 'FrontendBundle', 'BackendBundle' ]
        locales: [ 'de', 'en' ]

Command:

./app/console lazyants:translation:update

Generate manager

To generate manager (controller, view and form):

Command:

./app/console lazyants:generate:manager --entity=ENTITY_NAME

Arguments:

--entity: Mandatory value. The entity class name to initialize (shortcut notation)

--overwrite: Optional value. Do not stop the generation if crud controller already exist, thus overwriting all generated files

--actions: Optional value. List of actions in controller. You will need this option on order to add new methods to controller or remove some from it. Multiple value are possible, f.e.: --actions=index --actions=add --actions=manage --actions=delete

Customization:

In order to customize generated content, copy ToolkitBundle/Resources/skeleton into app/Resources/LazyantsDoctrineManager/skeleton or YOUR_BUNDLE/Resources/LazyantsDoctrineManager/skeleton. You can now customize controller, views or form. For actions without own view (by default there ist two - new and delete) simply don't create view files. Actions will be still created, if they are present in controller template and provided with --actions. In case of adding new actions or removing some of existing, you should always provide this argument.

Bitdeli Badge


All versions of toolkit-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
symfony/framework-bundle Version >=2.3,<2.4-dev
sensio/generator-bundle Version >=2.3.3
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 lazyants/toolkit-bundle contains the following files

Loading the files please wait ....