PHPackages                             biozahard/yii2-web3js-asset - 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. biozahard/yii2-web3js-asset

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

biozahard/yii2-web3js-asset
===========================

Web3.js libgrary asset bundle for Yii 2.0 Framework

0.20.2(8y ago)058BSD-3-ClausePHP

Since Dec 30Pushed 8y agoCompare

[ Source](https://github.com/biozahard/yii2-web3js-asset)[ Packagist](https://packagist.org/packages/biozahard/yii2-web3js-asset)[ RSS](/packages/biozahard-yii2-web3js-asset/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

Yii2 asset bundle for library web3.js v0.20.2
=============================================

[](#yii2-asset-bundle-for-library-web3js-v0202)

This package provide AssetBundle for web3js library

To install Yii2 Web3js Asset run:

```
composer require dmstr/yii2-adminlte-asset "0.20.2"

```

For adding web3.js on your page just add line:
----------------------------------------------

[](#for-adding-web3js-on-your-page-just-add-line)

```
    biozahard\web3js\Web3jsAssets::register($this);

```

Usage of web3.js
----------------

[](#usage-of-web3js)

Use the `web3` object directly from global namespace:

```
console.log(web3); // {eth: .., shh: ...} // it's here!
```

Set a provider (HttpProvider)

```
if (typeof web3 !== 'undefined') {
  web3 = new Web3(web3.currentProvider);
} else {
  // set the provider you want from Web3.providers
  web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
}
```

Set a provider (HttpProvider using [HTTP Basic Authentication](https://en.wikipedia.org/wiki/Basic_access_authentication))

```
web3.setProvider(new web3.providers.HttpProvider('http://host.url', 0, BasicAuthUsername, BasicAuthPassword));
```

There you go, now you can use it:

```
var coinbase = web3.eth.coinbase;
var balance = web3.eth.getBalance(coinbase);
```

You can find more examples in [`example`](https://github.com/ethereum/web3.js/tree/master/example) directory.

Caution!
--------

[](#caution)

Web3.js library in development, a lot of bugs and unpredictable behaviors expects you =)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3055d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ccd30055d93c23ed3e9ebe719d9c1c70f864fe214b6f1df7fd659ff41ed4d00?d=identicon)[biozahard](/maintainers/biozahard)

---

Top Contributors

[![biozahard](https://avatars.githubusercontent.com/u/5406151?v=4)](https://github.com/biozahard "biozahard (1 commits)")

---

Tags

JSyii2extensionassetethereumsoliditydappbiozahardweb3js

### Embed Badge

![Health badge](/badges/biozahard-yii2-web3js-asset/health.svg)

```
[![Health](https://phpackages.com/badges/biozahard-yii2-web3js-asset/health.svg)](https://phpackages.com/packages/biozahard-yii2-web3js-asset)
```

PHPackages © 2026

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