Download the PHP package zicht/versioning-bundle without Composer

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

ZichtVersioningBundle

The ZichtVersioningBundle hooks into Doctrine to save versions in a separate entity called EntityVersion, keeping track of changes and being able to revert to and plan future versions.

Implementation notes

Marking versionable behaviour

To make an entity versionable, the entity should implement the interface VersionableInterface. For all OneToMany relations, the relation must be marked cascade={...,"persist"} and the contained entity must implement the EmbeddedVersionableInterface.

The version data that is currently in the entity's table is called the active version. By setting another version active, the data from the version table is loaded into the entity and persisted to the database. This makes the versioning transparent; i.e., other components do not need to know that the entity is versioned, and can simply query the database directly, since the active version is always in the database table.

There is a command to introspect these versions, which can be useful for debugging.

cloning objects

If you want to be able to clone objects, you need to reset the object's id:

Otherwise, the versioning will mix up the record id references.

Sonata integration

Because the versioned embedded entities do not exist in the database, sonata's method of referring to objects using their id (in the childId parameter in the routes) does not work. For this, the EmbeddedVersionableAdminTrait is supplied to override the id(), update() and generateObjectUrl() methods, so the index rather than the id is used to refer to child objects. These values are loaded from the parent object in stead of from the

You should use this trait in all admins that are managing entities that implement the EmbeddedVersionableInterface, e.g. as such:

Maintainer


All versions of versioning-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
doctrine/common Version *@stable
doctrine/orm Version *@stable
zicht/itertools Version 2.*@stable
zicht/util Version 1.*@stable
symfony/http-foundation Version 2.*
symfony/security Version 2.*
symfony/serializer Version 2.*
symfony/property-access Version 2.*
sonata-project/admin-bundle Version *
symfony/console Version 2.*
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 zicht/versioning-bundle contains the following files

Loading the files please wait ....