Download the PHP package pocketframe/excel without Composer

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

Pocketframe Excel

A robust Pocketframe package for Excel and CSV import/export built on PhpSpreadsheet. It supports advanced features such as cell styling, multiple sheets, chunked processing for very large files, and auto-detection of CSV files.

Features

Installation

Install via Composer:

Usage

Importing Data

Generating an importer by running the following command:

[!important] You should not add Importer or Import to the file name. This will be added automatically and the file name will become UsersImporter.php. If you add Importer or Import to the file name will now become UsersImporterImporter.php which may not look nice. This also applies to the exporters.

This will generate a file named UsersImporter.php in the app/Excel/Imports directory. You can then customize the file accordingly.

[!NOTE] You can pass an entity name to the command to generate an importer for that entity. For example, php pocket excel:create:importer Users --entity=User will generate an importer for the User entity.

Create an importer by implementing

Pocketframe\Excel\Contracts\ImporterInterface. For example, create a file at app/Excel/Imports/UsersImporter.php with the following content:

Import your Excel file (with optional chunking and sheet selection) in your controller:

[!tip] You can also check for duplicates in the handle method. For example, you can check if a user with the same email already exists before saving it to the database. bash php pocket excel:create:exporter Users bash php pocket excel:create:exporter UserMulti --entity=User --multi

This will generate a file in the app/Excel/Exports directory named UserMultiExporter.php that includes the multi‑sheet boilerplate (with a sheets() method) and correctly references the User entity. You can then modify the file to customize the sheet names, columns, data, and styles.

Then export with:

API Reference

Excel Mask Methods

Imports data from a file.

Parameters:

Exports data using the provided exporter. Returns an instance for chaining (e.g., ->download()).

Parameters:

Downloads the generated spreadsheet. The writer auto-detects the file format based on extension.


All versions of excel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
phpoffice/phpspreadsheet Version 4.1.0
league/flysystem-local Version 3.x-dev
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 pocketframe/excel contains the following files

Loading the files please wait ...