Download the PHP package akunbeben/eloquent-file without Composer

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

Eloquent File

Packagist PHP from Packagist Laravel versions GitHub Workflow Status (main) Total Downloads

Query a MySQL or MariaDB SQL dump with Laravel's Query Builder and Eloquent, without restoring it to a database server. The dump is loaded into a read-only, temporary SQLite connection.

Installation

You can install the package via Composer:

The PHP PDO SQLite extension must be enabled. Laravel discovers the package automatically.

Large dumps are imported into a temporary, file-backed SQLite database by default, keeping the reconstructed database out of PHP process memory. The temporary database is removed when the dump is closed, replaced, or the PHP process shuts down normally. Abandoned package-owned databases are cleaned up on a later open after 24 hours by default. Before import, the package requires free space equal to the dump size plus a 100 MB buffer by default. Set eloquent-file.storage to memory for small dumps or tests, configure eloquent-file.temporary_directory when the operating system temporary directory is not suitable, or adjust eloquent-file.cleanup.max_age and eloquent-file.cleanup.free_space_buffer in the published config.

Publish the optional package configuration with:

Benchmarking

Run a reproducible end-to-end import benchmark against a dump:

Use --temp-dir=/path/to/benchmark-disk to benchmark a specific filesystem. The output reports import time, SQLite size, free space, PHP memory, process RSS, and whether the temporary database was removed after close().

Use --json when the benchmark output will be consumed by another tool.

Usage

Open a dump, then query it with the package facade:

The loaded connection is registered as eloquent-file, so it can be used by an Eloquent model:

For dependency injection, use the underlying service directly. A custom connection name may be passed as the second argument:

Schema and Completion Metadata

The loaded dump exposes JSON-friendly metadata for integrations and AI tools without any additional configuration:

schema() returns table names and column names. tables() and columns() filter suggestions by a case-insensitive prefix. Query clauses remain available through Laravel's native Query Builder. The metadata does not include MySQL indexes, constraints, or relationships that are not recreated in SQLite.

Write operations throw an Illuminate\Database\QueryException. Opening another dump with the same connection name replaces the previous temporary connection. table() keeps Laravel's normal Query Builder behavior. For large result sets, opt into cursor() for row-by-row reads or lazy() for chunked reads.

Supported Dumps

The reader supports standard MySQL and MariaDB table dumps containing backtick-quoted CREATE TABLE and INSERT INTO ... VALUES statements, including extended inserts and MySQL string escapes. Input is streamed while the resulting database is held in a temporary SQLite file by default.

MySQL-specific indexes, constraints, generated expressions, procedures, triggers, and views are not recreated. Queries use SQLite semantics, so raw MySQL-only SQL is not portable. Read-only mode prevents application writes; it is not a security sandbox for untrusted PHP code. The temporary SQLite database requires enough disk space for the reconstructed data; the OS temporary directory may be configured for deployments with a dedicated disk.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Thank you for considering contributing to Eloquent File! Please review our contributing guide to get started.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

Eloquent File is open-sourced software licensed under the MIT license.


All versions of eloquent-file with dependencies

PHP Build Version
Package Version
Requires ext-pdo Version *
ext-pdo_sqlite Version *
php Version ^8.3
illuminate/database Version ^12.0||^13.0
illuminate/support Version ^12.0||^13.0
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 akunbeben/eloquent-file contains the following files

Loading the files please wait ...