PHPackages                             agustind/ethsignature - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. agustind/ethsignature

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

agustind/ethsignature
=====================

v1.0.2(3y ago)711.2k↓25%1[1 PRs](https://github.com/agustind/php-ethereum-signature-validation/pulls)MITPHPPHP &gt;=7.3

Since Oct 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/agustind/php-ethereum-signature-validation)[ Packagist](https://packagist.org/packages/agustind/ethsignature)[ RSS](/packages/agustind-ethsignature/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

Verify Ethereum signed messages from PHP
----------------------------------------

[](#verify-ethereum-signed-messages-from-php)

If you want to authenticate a user via an Ethereum wallet from PHP, or restrict certain server-side functionalities to only allowed wallets, you can request for a signed message on the frontend using a library like Ethers.js or Web3.js and pass the wallet address and signature as parameters to the server. This library will verify the signature is valid and was indeed created by the specified wallet.

Usage
-----

[](#usage)

```
composer require agustind/ethsignature
```

```
