Download the PHP package rootwork/php-report-generator without Composer

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

PHP Report Generator

A time-saving PHP reporting library.

NOTE: This package is currently alpha and unstable. As we use it and settle on a final set of features for first release, we'll look to make 1.0.0 our first stable tag.

Installation

Install composer in a common location or in your project:

Create the composer.json file as follows:

Run the composer installer:

Concepts

This library is designed to give developers a way to encapsulate reports with a single class.

Core Methods

Your report class should extend Rootwork\Report\ReportAbstract and implement Rootwork\Report\ReportInterface. This will give you two abstract public methods to implement in your class: define() and run().

Definition, Columns and Variables

All reports have a Definition object the defines the features of the report. You add Column instances to define your columns and optional Variable instances if you want to pass variable parameters to your report (for an SQL WHERE clause for example).

Column($name, $display, $type, [$format = null, $total = false])

Variable($name, $display, $type, [$default = null, array $options = [], $format = null])

Data Sources

This library is currently data source agnostic. You are able to pass in and use any data source you like so long as you set an array of rows at the end of your run() method.

You may pass data sources and other dependencies to the constructor using the $options array, and use them in the initialize() method. The constructor will call initialize() with the $options array. Overriding __construct is discouraged.

Usage

Example Report Class

Using Report Classes

You can serialize the report definition as JSON. This is useful if you want to auto generate forms for running reports.

Result:

The run() method will return report rows but a more useful output is to encode the report as JSON.

Result:


All versions of php-report-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
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 rootwork/php-report-generator contains the following files

Loading the files please wait ....