Download the PHP package sebastianhofer/be-permissions without Composer

On this page you can find all versions of the php package sebastianhofer/be-permissions. 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 be-permissions

TYPO3 extension be_permissions

This extensions provides some cli commands to export and import be_groups records to/from yaml files.

Documentation

The extension uses the config/be_groups (parallel to config/sites) folder to store the exported be_group files. It also provides an API.

Features

Installation

Quick start

  1. Install the extension
  2. Go to a be_groups record in TYPO3 backend
  3. Enable code_manages_group, select a deploy_processing method and save (identifier should be created automatically)
  4. Export with the export command (see below)
  5. Add the resulting yaml file to git
  6. Deploy your code and execute the deploy command (see below)

be_groups changes

The extension adds three new fields to the be_groups.

code_managed_group

Activating this checkbox makes the group available for all the commands for import and export.

identifier

This field connects the yaml file to the br_groups record. This was introduced, because the uid is an autoincrement and therefore in case of newly created be_groups on a remote system using it as identifier would fail. The identifier is used to create a folder within all files for a be_group are placed.

deploy_processing

There are two ways to import a be_group.yaml:

overrule

In this case simply the record fields in database are overruled by the values in the be_group.yaml.

extend

In this case the permissions are merged. Means, that permissions only added in case they are not set, but nothing is removed.

Commands

Export command

This command exports either all as code_managed_group marked be_groups records to a yaml file or only the one with the as argument given identifier.

Extend command

This command imports the yaml file with the given identifier with the deploy processing 'extend' (see above).

Overrule command

This command imports the yaml file with the given identifier with the deploy processing 'overrule' (see above).

Synchronize command

This command synchronizes all as code_managed_group marked records from the given remote (prod) host to the local system. This happens via a REST API (see configuration section). This overrules your local records!

Argument: group identifier

Merge and export command

This command merges all as code_managed_group marked records from the given remote (prod) host with the local records. This happens via a REST API (see configuration section). Afterwards it exports the result to the yaml files.

Argument: group identifier

Deploy command

This command imports all yaml files based on the selected deploy_processing. Can be used for a deployment recipe.

Init command

This command initializes all existing be_groups as code managed. Default deploy processing is 'extend', but you can give 'overrule' as argument

Option '-e' triggers an export of all groups after initializing to yaml files.

Initialize Identifiers command

This command initializes all existing be_groups with an identifier if not set yet.

Configuration

To configure the extensions api there are some properties in the extension configuration:

apiToken

This is at the moment a simple api authentication. So the apiToken needs to be the same on local and remote system. For security reason it is not recommended to hold this in your git repository, but set this e.g. via an environment variable.

basicAuthUser and basicAuthPassword

If filled this holds basic auth credentials for the remote system.

remoteHost

This holds the host to the remote repository from where the synchronization should be used.

Feature Toggles

see https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/Configuration/FeatureToggles.html

be_permissions.automaticBeGroupsExportWithSave

If enabled an automatic export of a be_groups record is performed with saving the record.

Todo

Migrations

Update to > 0.6.0

Execute SQL script:


All versions of be-permissions with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
typo3/cms-core Version ^11.5
typo3/cms-backend Version ^11.5
typo3/cms-beuser Version ^11.5
typo3/cms-frontend Version ^11.5
typo3/cms-lowlevel Version ^11.5
ext-json Version *
symfony/framework-bundle Version ^5.4 || ^6.0
jfcherng/php-diff Version ^6.11
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 sebastianhofer/be-permissions contains the following files

Loading the files please wait ....