Download the PHP package mmauksch/json-repositories without Composer

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

JSON File Repository

A lightweight PHP library implementing the repository pattern with JSON file persistence. This library provides an easy way to create repositories that store data in JSON files, making it ideal for integration tests, Symfony web tests, and application prototyping.

๐Ÿ“‹ Overview

JSON File Repository offers a simple solution for temporary data persistence without the need for a full database setup. It implements the standard repository pattern, providing familiar interfaces for storing, retrieving, and managing collections of objects.

โš ๏ธ Note: This library is intended for testing and prototyping purposes only and is not suitable for production workloads.

๐Ÿš€ Installation

Install the library via Composer:

๐Ÿ”ง Usage

Basic Usage

Extending AbstractRepository

Instead of using GenericJsonRepository as an instance, you can also extend the AbstractJsonRepository class to create your own repository implementation:

Using Traits Selectively

You can also build your own repository implementation by selectively importing the traits that provide specific functionality:

Using Filters

Using Sorters

Using with Symfony Tests

For Application Prototyping

You can also simply let the dependency injection container provide the filesystem and serializer. In Symfony YAML configuration:

๐Ÿ”„ Key Features

๐Ÿ’ก Best Practices

๐Ÿงช When to Use

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE.md file for details.

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.


All versions of json-repositories with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/serializer Version *
symfony/finder Version *
symfony/filesystem Version *
ext-json Version *
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 mmauksch/json-repositories contains the following files

Loading the files please wait ....