Download the PHP package atournayre/historique-bundle without Composer

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

History Bundle

This bundle add History management for entities.

Requirements

Symfony ^5.4

PHP ^8.1

Install

Composer

Register bundle

Configuration

Replace App\Model\History by your History entity.

Replace App\Model\User by your User entity.

Add History entity to your application.

Usage

  1. Create/Update entity
  2. Create a factory for the entity you want to log
  3. Map your entity to the factory

Create/Update entity

You can add History to existing entities or add it to new ones.

To add history to an entity, it needs to implements HistorycableInterface.

Then use HistorycableTrait to add a relation between YourEntity and History.

Create a factory for the entity you want to log

Factories are where magic happens.

You have to create a Factory that implements how you want to store the history.

Map your entity to the factory

Once you factory is created, you need to add a mapping to the config file, so the listener can automatically get the right factory for the right entity.

With this, you can locate entities and factories anywhere in your project.

How to get values ?

Contributing

Of course, open source is fueled by everyone's ability to give just a little bit of their time for the greater good. If you'd like to see a feature or add some of your own happy words, awesome! Tou can request it - but creating a pull request is an even better way to get things done.

Either way, please feel comfortable submitting issues or pull requests: all contributions and questions are warmly appreciated :).


All versions of historique-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.4
symfony/config Version 5.4.*
symfony/dependency-injection Version 5.4.*
doctrine/orm Version ^2.9
symfony/security-bundle Version 5.4.*
doctrine/common Version ^3.1
symfony/serializer Version 5.4.*
symfony/yaml Version ^5.4
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 atournayre/historique-bundle contains the following files

Loading the files please wait ....