PHPackages                             wasoon/php-ethereum - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. wasoon/php-ethereum

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

wasoon/php-ethereum
===================

1.1(7y ago)9273MITPHPPHP &gt;=5.4

Since Jul 30Pushed 7y ago3 watchersCompare

[ Source](https://github.com/wasoon/php-ethereum)[ Packagist](https://packagist.org/packages/wasoon/php-ethereum)[ Docs](https://github.com/wasoon/php-ethereum)[ RSS](/packages/wasoon-php-ethereum/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

php-ethereum
============

[](#php-ethereum)

用PHP语言（5.4以上版本）编写的以太坊客户端SDK

开发流程：
-----

[](#开发流程)

1、安装go环境（请参考官方对安装go的各环境教程）

2、安装以太坊节点（MAC环境下安装）：

```
brew tap ethereum/ethereum
brew install ethereum

```

3、在当前节点上创建一个帐户

```
geth account new

```

4、以开发方式启动 `geth`（这个是ethereum默认自带的golang版本的客户端工具）

```
geth --rpc --rpccorsdomain "http://localhost:8545" --datadir "~/data" --dev

```

5、然后再用客户端连接管理即可，至于用什么客户端看个人喜欢，因为看到官方貌似没正式发布PHP版本的JSON-RPC客户端（虽然有几个链接，但感觉自己不太喜欢），所以自己写了个，方便大家使用，并且也记录了下开发流程，希望大家对以太坊的区块链开发少走点弯路。

6、安装 php-ethereum 客户端

```
composer require wasoon/php-ethereum

```

7、调用范例(API手册：)

```
