Download the PHP package aklump/loft_data_grids without Composer

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

Loft Data Grids

Packagist link

There will be no new features added to this project. I suggest using the Symfony Serializer Component instead for similar functionality. The project will not receive ongoing support.

Summary

This package is a PHP object-oriented solution for modelling data in two (rows + columns) or three dimensions (rows + columns + pages). It can be thought of like a spreadsheet.

It allows a single data class ExportData to be used to organize your data in a grid, with various output styles Exporter so you can easily get a .csv file or a .xlsx file, among many others.

See the code for more documentation.

Install with Composer

  1. Require this package:

Usage

Let's build a two-layer data grid. (Layers are called pages.) The first page will contain names and ages of three people. The second page will contain vehicle information. It can be pictured in two tables:

Page 0 Name Age
Adam 39
Brandon 37
Charlie 7
Page 1 Color Make
Black Honda
White BMW

In Code

Accessing data from the object

Think of pointer as a row in a table.

Exporting data to other formats

We can export both pages in CSV like this:

Or to get it as JSON...

(This has been formatted for easier-reading; the actual JSON is minified.)

Or any of the other exporter classes.

Saving to File

Exporters: objects as values

Testing

  1. Run the PhpUnit tests with ./bin/run_unit_tests.sh

All versions of loft_data_grids with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1 || <=8.1
symfony/yaml Version ^3.4 || ^4 || ^5
phpoffice/phpspreadsheet Version ^1.10 || ^2.2
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 aklump/loft_data_grids contains the following files

Loading the files please wait ....