Download the PHP package quillstack/local-storage without Composer

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

Quillstack Local Storage

Tests Latest Version Downloads PHP Version StyleCI CodeFactor Quality Gate Coverage Maintainability Reliability Security Maintainability License

The package to manage files on the local storage.

Why this exists

It is the implementation behind quillstack/storage-interface, and its whole job is to make an interface out of four PHP functions so that everything above it can be tested without a disk.

The cache, the logger and dotenv all read and write through that interface. In a test they are handed something that keeps files in an array; in production they are handed this. Neither knows the difference, and neither calls file_put_contents itself.

Nothing here does anything clever. Reading it should take a minute and finding a bug in it should be hard, which is the point of a package this small.

Requirements

Installation

To install this package, run the standard command using Composer:

Usage

Create a class or inject it as a dependency:

If you want to use it as a dependency:

Storage interface

This package implements quillstack/storage-interface: \ https://github.com/quillstack/storage-interface \ with methods:

Benchmark

Measured with quillstack/benchmark on a thousand write-and-read pairs of a small file. Runs are interleaved and unconcurrent, each figure is the median of five, and PHP is 8.5.7.

Version
quillstack/local-storage 0.6.0
league/flysystem 3.35.3
Per write and read Relative
quillstack/local-storage 83.6 µs
league/flysystem 85.7 µs 1.02×

These are the same number. Both call the same kernel, and two per cent between them is the filesystem rather than either library. A benchmark of two thin wrappers over file_put_contents was never going to say anything else, and it is here because the alternative is leaving a reader to wonder.

The difference is what they reach. league/flysystem writes to S3, FTP, SFTP, Azure, Google Cloud, in-memory and a dozen more, with stream support, visibility, MIME detection and directory listings. This writes to the disk it is running on. Where you need one of those, use Flysystem — and where you need a StorageInterface implementation that does not bring an ecosystem with it, that is what this is.

Tests

Run tests using a command:

The rest of Quillstack

This is one component of Quillstack, a PHP framework which is as simple to use as it is strict about what it does.

License

MIT — see LICENSE.


All versions of local-storage with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
quillstack/storage-interface 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 quillstack/local-storage contains the following files

Loading the files please wait ...