Download the PHP package arthurhlt/zitadel-php without Composer
On this page you can find all versions of the php package arthurhlt/zitadel-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arthurhlt/zitadel-php
More information about arthurhlt/zitadel-php
Files in arthurhlt/zitadel-php
Package zitadel-php
Short Description Zitadel php client for interacting with the Zitadel API.
License MIT
Homepage https://openapi-generator.tech
Informations about the package zitadel-php
zitadel-php
Zitadel php client for interacting with the Zitadel API
Regenerate/update
Zitadel is a protobuf project and give proto file containing openapi convertion.
Instead of directly use grpc/protobuf in php, I have preferred to use openapi to generate php client because there is more chance to have a better support and more people are familiar with openapi and php generation is a nightmare if using other api which have not been generated before.
Requirements
- buf to generate the openapi file from proto
- openapi-generator to generate the php client
Steps
- Clone this repository
- Take a look at /buf.gen.yaml to change to the zitadel version you want to generate
- Run
./generate.sh
to generate the openapi file and php classes - Commit the changes
Installation & Usage
Requirements
PHP 7.2 and later.
Composer
To install the bindings via Composer, add the following to composer.json
:
Then run composer install
Your project is free to choose the http client of your choice Please require packages that will provide http client functionality: https://packagist.org/providers/psr/http-client-implementation https://packagist.org/providers/php-http/async-client-implementation https://packagist.org/providers/psr/http-factory-implementation
As an example:
Manual Installation
Download the files and include autoload.php
:
Getting Started
Please follow the installation procedure and then run the following:
Authorization
BasicAuth
- Type: HTTP basic authentication
OAuth2
- Type:
OAuth
- Flow:
accessCode
- Authorization URL:
zitadel.cloud/oauth/v2/authorize
- Scopes:
- openid: openid
- urn:zitadel:iam:org:project:id:zitadel:aud: urn:zitadel:iam:org:project:id:zitadel:aud
Tests
To run the tests, use:
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0
- Generator version:
7.12.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen
All versions of zitadel-php with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/psr7 Version ^1.8 || ^2.0
php-http/async-client-implementation Version ^1.0
php-http/client-common Version ^2.4
php-http/discovery Version ^1.14
php-http/httplug Version ^2.2
php-http/message-factory Version ^1.1
psr/http-client-implementation Version ^1.0
psr/http-factory Version ^1.0
psr/http-factory-implementation Version ^1.0
psr/http-message Version ^1.0|^2.0