PHPackages                             ziwot/cake-tezos - 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. ziwot/cake-tezos

ActiveCakephp-plugin

ziwot/cake-tezos
================

Tezos plugin for CakePHP

v0.0.5(1mo ago)147MITPHPPHP &gt;=8.1CI passing

Since May 11Pushed 1mo agoCompare

[ Source](https://github.com/ziwot/cake-tezos)[ Packagist](https://packagist.org/packages/ziwot/cake-tezos)[ RSS](/packages/ziwot-cake-tezos/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (17)Versions (7)Used By (0)

CakeTezos
=========

[](#caketezos)

[![tests](https://github.com/ziwot/cake-tezos/workflows/tests/badge.svg)](https://github.com/ziwot/cake-tezos/workflows/tests/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/ea7f41ce76e7042d9fef23ff4e5724908789100cea6e1d4fb9e768daea43faf5/68747470733a2f2f706f7365722e707567782e6f72672f7a69776f742f63616b652d74657a6f732f76)](https://packagist.org/packages/ziwot/cake-tezos)[![Total Downloads](https://camo.githubusercontent.com/fae6c4eb6ce8e53765d904236ad46261513333d44f23d4cd8928b67ea38ec25a/68747470733a2f2f706f7365722e707567782e6f72672f7a69776f742f63616b652d74657a6f732f646f776e6c6f616473)](https://packagist.org/packages/ziwot/cake-tezos)[![Latest Unstable Version](https://camo.githubusercontent.com/264897f100dacf2d65e2d7e4bf0b10556eb7161eb82f308c3f9a0deec525033e/68747470733a2f2f706f7365722e707567782e6f72672f7a69776f742f63616b652d74657a6f732f762f756e737461626c65)](https://packagist.org/packages/ziwot/cake-tezos)[![License](https://camo.githubusercontent.com/671137b35b0e7094096203cba4881703f5b046e8418b3ab91337246296ebdb6e/68747470733a2f2f706f7365722e707567782e6f72672f7a69776f742f63616b652d74657a6f732f6c6963656e7365)](https://packagist.org/packages/ziwot/cake-tezos)[![PHP Version Require](https://camo.githubusercontent.com/eac9423dbebb34aac7e7a0b0cc5720d157bf48f257beafa8837ea3b690d5ec44/68747470733a2f2f706f7365722e707567782e6f72672f7a69776f742f63616b652d74657a6f732f726571756972652f706870)](https://packagist.org/packages/ziwot/cake-tezos)

Tezos plugin for CakePHP

This plugin provides:

- Authenticator and Identifier for the [Authentication plugin](https://book.cakephp.org/authentication/3/en/index.html).
- Wallet connection via [SIWT](https://github.com/StakeNow/SIWT).

Install with :

```
composer require ziwot/cake-tezos
```

Load the plugin :

```
bin/cake plugin load CakeTezos
```

Link assets :

```
cake plugin assets symlink
```

You should also add it to your `.gitignore` :

```
# Plugins
/webroot/cake_tezos

```

Of course, when you deploy to prod, then, copy the assets :

```
cake plugin assets copy
```

Load Authenticator and Identifier :

```
// Load Authenticator & Identifier
$service->loadAuthenticator('CakeTezos.SignedMessage', [
    'identifier' => 'CakeTezos.TezosBase',
]);
```

Load Component in (`src/Controller/AppController`) :

```
$this->loadComponent('CakeTezos.Network', [
    'network' => Network::Mainnet->value,
]);
```

Load Helper in (`src/View/AppView`) :

```
$this->addHelper('CakeTezos.Tz');
```

In a view, load the element to allow connect :

```
