PHPackages                             yoruchiaki/php-webase-front - 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. yoruchiaki/php-webase-front

ActiveLibrary

yoruchiaki/php-webase-front
===========================

使用PHP对WebaseFront节点前置服务提供调用

v1.0.3(2y ago)112MITPHPPHP ^7.4 | ^8.0

Since Aug 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Yoruchiaki/php-webase-front)[ Packagist](https://packagist.org/packages/yoruchiaki/php-webase-front)[ RSS](/packages/yoruchiaki-php-webase-front/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

PHP-WEBASE-FRONT
================

[](#php-webase-front)

提示
--

[](#提示)

!!!本项目处于开发中,接口和调用方式仍会发生改变!!!
============================

[](#本项目处于开发中接口和调用方式仍会发生改变)

项目
--

[](#项目)

### 本项目提供对 Webase-Front-Node 前置服务的接口调用

[](#本项目提供对-webase-front-node-前置服务的接口调用)

### 针对Laravel提供开箱可用的支持

[](#针对laravel提供开箱可用的支持)

安装
--

[](#安装)

```
$ composer require yoruchiaki/php-webase-front
```

已完成的(已完成E2E测试)
--------------

[](#已完成的已完成e2e测试)

- 合约接口 [Contract](src%2FServices%2FContract)
- 密钥接口 [PrivateKey](src%2FServices%2FPrivateKey)
- 交易接口 [Trans](src%2FServices%2FTrans)
- 工具接口 [Tool](src%2FServices%2FTool)

未完成的(删除代表已完成)
-------------

[](#未完成的删除代表已完成)

- [ContractInterface.php](src%2FInterfaces%2FContractInterface.php)
- [BaseServiceInterface.php](src%2FInterfaces%2FBaseServiceInterface.php)
- [CertInterface.php](src%2FInterfaces%2FCertInterface.php)
- [ChargingInterface.php](src%2FInterfaces%2FChargingInterface.php)
- [ContractInterface.php](src%2FInterfaces%2FContractInterface.php)
- [ContractStoreInterface.php](src%2FInterfaces%2FContractStoreInterface.php)
- [EncryptInterface.php](src%2FInterfaces%2FEncryptInterface.php)
- [EventInterface.php](src%2FInterfaces%2FEventInterface.php)
- [HttpRequestInterface.php](src%2FInterfaces%2FHttpRequestInterface.php)
- [PerformanceInterface.php](src%2FInterfaces%2FPerformanceInterface.php)
- [PermissionInterface.php](src%2FInterfaces%2FPermissionInterface.php)
- [PrivateKeyInterface.php](src%2FInterfaces%2FPrivateKeyInterface.php)
- [ToolInterface.php](src%2FInterfaces%2FToolInterface.php)
- [TransInterface.php](src%2FInterfaces%2FTransInterface.php)
- [Web3Interface.php](src%2FInterfaces%2FWeb3Interface.php)

说明
==

[](#说明)

依赖条件
----

[](#依赖条件)

本项目前置依赖： 1.已经正确安装并部署了 Webase 的相关服务：Sign 服务，Node 节点。 2.可以正常访问 Webase 的Node节点前置服务。例如：

使用本项目可以方便的调用Node前置节点提供的各种服务，可实现的功能与WeBASE-FRONT完全一致，并且使用各种对象封装使接口更加清晰易懂。

> WeBASE-Front是和FISCO-BCOS节点配合使用的一个子系统。此分支支持FISCO-BCOS 2.0以上版本，集成web3sdk，对接口进行了封装，可通过HTTP请求和节点进行通信。另外，具备可视化控制台，可以在控制台上开发智能合约，部署合约和发送交易，并查看交易和区块详情。还可以管理私钥，对节点健康度进行监控和统计。

安装
==

[](#安装-1)

本项目使用 Composer 对依赖项目进行管理

**当前项目处于迭代阶段，使用方法尚不稳定，请自行决定是否使用**

1.执行下面的安装命令

```
composer require yoruchiaki/php-webase-front=dev-main
```

2.【可选】使用Laravel发布配置文件

```
php artisan vendor:publish --tag="webase-front"

```

3.【可选】在Laravel的 config/webase-front.php 中修改 frontUrl或在环境变量中创建

```
WEBASE_FRONT_URL=XXX
```

**安装完毕**

\#使用

1. 常规PHP项目使用

```
require_once './vendor/autoload.php';
use  Yoruchiaki\WebaseFront\HttpClient\AppConfig;
use  Yoruchiaki\WebaseFront\HttpClient\HttpRequest;

$httpClient = new HttpRequest(
      new AppConfig(
                "http://10.0.200.118:5002/WeBASE-Front/",
                5
      )
);

$abiClient = new \Yoruchiaki\WebaseFront\Services\Contract\ContractService($httpClient);
//Contract,Bin,Sol都可以使用相同的方法进行初始化.
$abi = new \Yoruchiaki\WebaseFront\ValueObjects\SolidityAbi();
$abi->loadPath('/filePath/demo.abi');// 载入abi文件路径也可以在构造函数中传入文件内容进行初始化
$bin = new \Yoruchiaki\WebaseFront\ValueObjects\SolidityBin();
$bin->loadPath('/filePath/demo.bin');// 载入abi文件路径也可以在构造函数中传入文件内容进行初始化
$sol = new \Yoruchiaki\WebaseFront\ValueObjects\SoliditySol(
    file_get_contents('/filePath/demo.sol')
);

$solidity = new \Yoruchiaki\WebaseFront\ValueObjects\Solidity(
    'demo',
    $abi,
    $bin,
    $sol
);
$contractAddress = '0xabcd....';
$abiClient->abiInfo($solidity,$contractAddress);
$abiClient->addContractPath('path-folder');
$abiClient->compileJava($solidity);
$abiClient->contractCompile('demo',$sol);
$abiClient->contractList(1,10);
...
```

2.如果你使用Laravel的话则可以直接使用Facade进行调用

```
use Yoruchiaki\WebaseFront\Facade\ContractFacade;

ContractFacade::abiInfo($solidity,$contractAddress);
...
```

3.以此类推

```
当前版本还有如下方法可以调用
use Yoruchiaki\WebaseFront\Facade\ContractFacade; //合约
use Yoruchiaki\WebaseFront\Facade\ToolFacade; //工具
use Yoruchiaki\WebaseFront\Facade\PrivateKeyFacade; //密钥
use Yoruchiaki\WebaseFront\Facade\TransFacade; //交易
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

1011d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d8b8ce137b5495a900aa92a7a8927bde288f488bb4d61b0f94edab8d5f87364?d=identicon)[Yoruchiaki](/maintainers/Yoruchiaki)

---

Top Contributors

[![Yoruchiaki](https://avatars.githubusercontent.com/u/13967564?v=4)](https://github.com/Yoruchiaki "Yoruchiaki (19 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yoruchiaki-php-webase-front/health.svg)

```
[![Health](https://phpackages.com/badges/yoruchiaki-php-webase-front/health.svg)](https://phpackages.com/packages/yoruchiaki-php-webase-front)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
