Download the PHP package galactic-shrine/gsid without Composer

On this page you can find all versions of the php package galactic-shrine/gsid. 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 gsid

GalacticShrine GsId pour PHP

Langues : Français · 日本語

GsId est une bibliothèque PHP pour créer, parser, valider, sérialiser et stocker des identifiants Galactic-Shrine de 256 bits.

Elle fournit un cœur PHP pur, un type Doctrine DBAL, un bundle Symfony optionnel, un bridge Symfony et une recipe Symfony Flex prête à publier.

Vue d’ensemble

Élément Valeur
Package galactic-shrine/gsid
Version majeure 2.0.1
PHP >= 8.1
Licence MPL-2.0
Type d’identifiant 256 bits / 32 octets / 64 caractères hexadécimaux
Format Doctrine gsid
Bundle Symfony GalacticShrine\GsId\Symfony\GsIdBundle

Installation

Formats supportés

GsId supporte deux formats texte.

Format N

Format compact, sans séparateur :

Longueur : 64 caractères.

Format D

Format lisible avec séparateurs :

Groupe : 16-8-8-8-8-16.

Longueur : 69 caractères.

Utilisation PHP pure

Options globales

lock() empêche les modifications de configuration après l’initialisation de l’application.

Symfony avec bundle

Active le bundle si Symfony Flex ne le fait pas automatiquement :

Configuration recommandée :

Le bundle enregistre automatiquement le type Doctrine DBAL gsid si DoctrineBundle est présent.

Symfony sans bundle

Le fichier suivant est fourni comme configuration alternative :

Il permet d’enregistrer manuellement :

Ce mode est utile si tu veux utiliser Symfony sans activer GsIdBundle.

Doctrine DBAL

Depuis 2.0.0, le type Doctrine est dans le namespace bridge :

Exemple d’entité :

Tu peux aussi utiliser directement le nom du type :

Bridge Symfony

GsIdToUid fournit des conversions utiles pour les routes, DTO, formulaires ou serializers Symfony.

Le nom GsIdToUid est volontaire. GsIdToUuid serait trompeur, car un GsId est un identifiant 256 bits alors qu’un UUID standard est un identifiant 128 bits.

Symfony Flex recipe

Une recipe modèle est fournie ici :

Elle peut :

Important : le dossier flex-recipes/ inclus dans ce dépôt est un modèle. Pour que Symfony Flex l’applique automatiquement lors d’un composer require, la recipe doit être publiée dans un dépôt Symfony Flex public ou privé.

Migration depuis 1.x

GsIdDoctrineType a été supprimé en 2.0.0.

Avant :

Après :

Voir UPGRADE-2.0.md.

Guides de migration disponibles : JP.

Développement

Licence

GsId is distributed under MPL-2.0.


All versions of gsid with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 galactic-shrine/gsid contains the following files

Loading the files please wait ...