Download the PHP package mjr/code-generator-bundle without Composer

On this page you can find all versions of the php package mjr/code-generator-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 code-generator-bundle

MJR.ONE Code Generator Bundle

This Bundle contains an Code Generator to rapidly Develope using Symfony Framework.

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

.. code-block:: bash

$ composer require mjr/code-generator-bundle "1.*"

This command requires you to have Composer installed globally, as explained in the installation chapter <https://getcomposer.org/doc/00-intro.md>_ of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:

.. code-block:: php

<?php
// app/AppKernel.php
use MjrOne\CodeGeneratorBundle\MjrOneCodeGeneratorBundle;

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new MjrOneCodeGeneratorBundle(),
        );

        // ...
    }
}

Step 3: Update Configuration

You might need to update/modify the Configuration of the Bundle. It is optimized twords Symfony. If you have a different Layout, okease check the Bundle Configuration file!

Supported Code Generators

Service

This Code Generator helps to create Simple Services with Automated Dependency Injection (both __constructor based as well as setter based). Support has been added for Controller Services (All Required options are set) All added Functions are put inside of a TraitServiceXX trait and added to Service Class. In case of an Controller, a Route Annotation is also added This is fully configurable over an annotation.

Mutator

Adds Getters & Setters as well as Methods to check if contains either a Value at all or checks on Array Value(array + array collection) [has]. For Array Collections and arrays the methods addXX, removeXX, countXX are also added. This is fully configurable over an annotation.

Entity

One Time Code Generation. Adds Repository Class if not exists This is fully configurable over an annotation.

Repository

adds some base functions to your repository. This is fully configurable over an annotation.

Commands

Generate Code

./bin/console mjr:generateCode --help  ✓  206  00:28:28 Usage: mjr:generateCode [options] [--]

Arguments: file File to Generator Code For

Options: -a, --all Update all Files in Bundle, -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -e, --env=ENV The environment name [default: "prod"] --no-debug Switches off debug mode -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help: Generate MJRONE Bundle Codes

This is the Main Code Generator. If you add the flag -a or --all file needs to be the path to a bundle!

Update Routing Files

./bin/console mjr:generateRouting --help  ✓  208  00:34:16 Usage: mjr:generateRouting []

Arguments: cleanup remove Not Found Options

Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -e, --env=ENV The environment name [default: "production"] --no-debug Switches off debug mode -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help: Generates a bundle Routing

if the argument cleanup is added, the generator starts with an empty configuration file!

Bundle Generator

Controller Generator

Entity Generator


All versions of code-generator-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
symfony/symfony Version <3.4.0
symfony/property-info Version <3.4.0
phpdocumentor/reflection-docblock Version ^3.0
symfony/property-access Version <3.4.0
mjr/cg-interfaces Version 1.*
nikic/php-parser Version ^3.0.2
phpunit/phpunit Version 6.*
phpunit/php-code-coverage Version 5.*
phpunit/phpunit-mock-objects Version 4.*
phpunit/php-invoker Version 1.*
mikey179/vfsstream Version 1.*
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 mjr/code-generator-bundle contains the following files

Loading the files please wait ....