PHPackages                             arthurhlt/zitadel-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. arthurhlt/zitadel-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

arthurhlt/zitadel-php
=====================

Zitadel php client for interacting with the Zitadel API.

v0.3.1(1y ago)18.6k↓90%MITPHPPHP &gt;=7.2

Since Mar 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ArthurHlt/zitadel-php)[ Packagist](https://packagist.org/packages/arthurhlt/zitadel-php)[ Docs](https://openapi-generator.tech)[ RSS](/packages/arthurhlt-zitadel-php/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (13)Versions (6)Used By (0)

zitadel-php
===========

[](#zitadel-php)

[Zitadel](https://zitadel.com) php client for interacting with the [Zitadel API](https://zitadel.com/docs/api/)

Regenerate/update
-----------------

[](#regenerateupdate)

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](https://buf.build/docs/install) to generate the openapi file from proto
- [openapi-generator](https://openapi-generator.tech/docs/installation) to generate the php client

**Steps**

- Clone this repository
- Take a look at [/buf.gen.yaml](/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 &amp; Usage
------------------------

[](#installation--usage)

### Requirements

[](#requirements)

PHP 7.2 and later.

### Composer

[](#composer)

To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`:

```
{
  "require": {
    "arthurhlt/zitadel-php": "^0.3"
  }
}
```

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:

As an example:

```
composer require guzzlehttp/guzzle php-http/guzzle7-adapter http-interop/http-factory-guzzle

```

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
