Download the PHP package rougin/combustor without Composer

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

Combustor

Latest Version on Packagist Software License Build Status Coverage Status Total Downloads

Combustor is a utility package for Codeigniter 3 that generates controllers, models, and views based on the provided database tables. It uses the Describe package for getting columns from a database table and as the basis for code generation.

Features

Installation

Extract the contents of the latest Codeigniter 3 project first:

Then configure the project's database connectivity settings:

Next is to proceed in installing Combustor via Composer:

Lastly, install the ORM wrappers like Wildfire or Doctrine:

[!NOTE] Using the install:wildfire command installs the Wildfire package while the install:doctrine installs the Credo package.

Reminders

Prior in executing any commands, kindly ensure that the database tables are defined properly (foreign keys, indexes, relationships, normalizations) in order to minimize the modifications after the code structure has been generated.

Also, please proceed first in generating models, views, or controllers to database tables that are having no relationship with other tables in the database.

[!TIP] Combustor will generate controllers, models, or views based on the specified database schema. If there's something wrong in the specified database schema, Combustor will generate a bad codebase.

Commands

create:layout

Create a new header and footer file.

Options

Example

create:controller

Create a new HTTP controller.

Arguments

Options

[!NOTE] If either Wildfire or Doctrine is installed, no need to specify it as option for executing a specified command (e.g. --wildfire). However if both are installed, a command must have a --wildfire or --doctrine option added.

Example

create:model

Create a new model.

Arguments

Options

Example

create:repository

Create a new entity repository.

Arguments

Options

Example

[!NOTE] This command is only applicable to a Doctrine implementation.

create:view

Create view templates.

Arguments

Options

Example

create:scaffold

Create a new HTTP controller, model, and view templates.

Arguments

Options

Example

[!NOTE] If --doctrine is selected, the command will also execute the create:repository command.

install:doctrine

Install the Doctrine package.

Example

[!NOTE]

  • This command will be available if Doctrine is not installed in the project.
  • It also adds a Loader.php in the core directory. The said file is used for loading custom repositories extended to EntityRepository.

install:wildfire

Install the Wildfire package.

Example

[!NOTE] This command will be available if Wildfire is not installed in the project.

remove:doctrine

Remove the Doctrine package.

Example

[!NOTE] This command will be available if Doctrine is installed in the project.

remove:wildfire

Remove the Wildfire package.

Example

[!NOTE] This command will be available if Wildfire is installed in the project.

Using combustor.yml

Combustor currently works out of the box after the configuration based on Installation. However, using a combustor.yml can be used for complex setups like specifying the new application path and excluding columns:

To create a combustor.yml, simply run the initialize command:

app_path

This property specifies the application directory. It may updated to any directory (e.g., ciacme/application, ciacme/config, etc.) as long it can detect the config/config.php file from the defined directory:

[!NOTE] Combustor will try to check the path specified in app_path if it is a valid Codeigniter 3 project. Then it will perform another check if the application directory exists or if the config directory can be accessed directly from the directory defined in app_path.

excluded_fields

Specified fields in this property are excluded from generation to the following templates:

[!NOTE] The timestamps are added by default when creating a combustor.yml for the first time as they are usually populated automatically by installed ORMs such as Wildfire or Doctrine.

custom_fields

By default, all of the fields generated by Combustor to create and edit pages will use the form_input helper:

However, some fields like email and boolean types may need to use other form helpers:

To achieve this, Combustor provides a utility for handling specified field names or data types using custom_fields:

When adding a custom field, kindly create a class that extends to the Colfield class:

Then after creating the custom field, simply add the class name to the combustor.yml:

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

Credits

License

The MIT License (MIT). Please see LICENSE for more information.


All versions of combustor with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
rougin/blueprint Version ~0.7
rougin/classidy Version ~0.1
rougin/describe Version ~1.8
rougin/spark-plug Version ~0.6
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 rougin/combustor contains the following files

Loading the files please wait ....