PHPackages                             zyimm/php-pojo - 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. zyimm/php-pojo

ActiveLibrary

zyimm/php-pojo
==============

将PHP数据转换为Java的pojo工具

0.0.5(2y ago)044PHPPHP &gt;=7.0

Since Feb 2Pushed 2mo ago1 watchersCompare

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

READMEChangelog (5)DependenciesVersions (7)Used By (0)

PHP数组转为类Java POJO对象处理提高程序安全性
============================

[](#php数组转为类java-pojo对象处理提高程序安全性)

安装

```
composer  require zyimm/php-pojo
```

使用示例
----

[](#使用示例)

```
class DemoDto extends \Zyimm\Pojo\Pojo
{
    protected $id；

    protected $name;

    /**
     * @return mixed
     */
     public  function getId()
     {
        return $this->id;
     }

      public  function setId(int $id)
     {
        $this->id = $id;
     }

    /**
     * @return string
     */
     public  function getName():string
     {
        return $this->name;
     }

     public  function setName(string $name)
     {
         $this->name = $name;
     }

}

$dto = new DemoBto([
    'id' => 1
    'name' => 'name'
])

echo $dto['id']; // 1  or  $dto->getId();

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance58

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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 ~8 days

Total

5

Last Release

802d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c31b310d4608e48a367362df60391bb65e81d242eb99747f0d9215f6d2482a39?d=identicon)[zyimm](/maintainers/zyimm)

---

Top Contributors

[![zyimm](https://avatars.githubusercontent.com/u/13979159?v=4)](https://github.com/zyimm "zyimm (14 commits)")

### Embed Badge

![Health badge](/badges/zyimm-php-pojo/health.svg)

```
[![Health](https://phpackages.com/badges/zyimm-php-pojo/health.svg)](https://phpackages.com/packages/zyimm-php-pojo)
```

PHPackages © 2026

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