PHPackages                             0ws0/hobby - 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. 0ws0/hobby

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

0ws0/hobby
==========

my hobby!yahoo

v1.0.7(8y ago)034MITPHPPHP &gt;=7.0.0

Since Apr 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/0ws0/hobby)[ Packagist](https://packagist.org/packages/0ws0/hobby)[ RSS](/packages/0ws0-hobby/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (9)Used By (0)

PSR-0 PSR-4 示例 PSR规范:

在做composer包时，调示方法为在vendor\_name目录下进行composer install则会生成vendor目录然后可写单元进行composer配置和类方法测试。

附： PSR-0规范 1、 一个完全合格的 namespace 和 class 必须符合这样的结构：“&lt; Vendor Name&gt;(&lt; Namespace&gt;)\*&lt; Class Name&gt;” 2、每个 namespace 必须有一个顶层的 namespace（"Vendor Name" 提供者名字） 3、每个 namespace 可以有多个子 namespace 4、当从文件系统中加载时，每个 namespace 的分隔符(/)要转换成 DIRECTORY\_SEPARATOR (操作系统路径分隔符) 5、在类名中，每个下划线(\_)符号要转换成 DIRECTORY\_SEPARATOR (操作系统路径分隔符)。在 namespace 中，下划线\_符号是没有（特殊）意义的。 6、当从文件系统中载入时，合格的 namespace 和 class 一定是以 .php 结尾的 7、verdor name,namespaces,class 名可以由大小写字母组合而成（大小写敏感的）

PSR-4规范 PSR-4规范了如何指定文件路径从而自动加载类定义，同时规范了自动加载文件的位置。这个乍一看和 PSR-0 重复了，实际上，在功能上确实有所重复。区别在于 PSR-4 的规范比较干净，去除了兼容 PHP 5.3 以前版本的内容，有一点 PSR-0 升级版的感觉。当然，PSR-4 也不是要完全替代 PSR-0，而是在必要的时候补充 PSR-0 ——当然，如果你愿意，PSR-4 也可以替代 PSR-0。PSR-4 可以和包括 PSR-0 在内的其他自动加载机制共同使用。 PSR4标准与PSR0标准的区别：

1）在类名中使用下划线没有任何特殊含义。

2）命名空间与文件目录的映射方法有所调整。

PSR-0风格

```
vendor/
vendor_name/
    package_name/
        src/
            Vendor_Name/
                Package_Name/
                    ClassName.php       # Vendor_Name\Package_Name\ClassName
        tests/
            Vendor_Name/
                Package_Name/
                    ClassNameTest.php   # Vendor_Name\Package_Name\ClassName

```

 PSR-4风格

```
vendor/
vendor_name/
    package_name/
        src/
            ClassName.php       # Vendor_Name\Package_Name\ClassName
        tests/
            ClassNameTest.php   # Vendor_Name\Package_Name\ClassNameTest    vendor/
vendor_name/
    package_name/
        src/
            ClassName.php       # Vendor_Name\Package_Name\ClassName
        tests/
            ClassNameTest.php   # Vendor_Name\Package_Name\ClassNameTest

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

8

Last Release

2959d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fa7898f5783ce9fd5b31d310313ed8f881a249589fde9da690202f6a160fa91?d=identicon)[0ws0](/maintainers/0ws0)

---

Top Contributors

[![sunshine77580-max](https://avatars.githubusercontent.com/u/260000869?v=4)](https://github.com/sunshine77580-max "sunshine77580-max (1 commits)")

### Embed Badge

![Health badge](/badges/0ws0-hobby/health.svg)

```
[![Health](https://phpackages.com/badges/0ws0-hobby/health.svg)](https://phpackages.com/packages/0ws0-hobby)
```

###  Alternatives

[laracademy/generators

This package will generate a Laravel Model based on your database table itself, filling in the required fields automatically.

355346.4k4](/packages/laracademy-generators)[beyondcode/laravel-vouchers

Allow users to redeem vouchers that are bound to models..

70763.4k2](/packages/beyondcode-laravel-vouchers)[firegento/magesetup2

MageSetup provides the necessary configuration (system config, tax, agreements, etc. for a national market.

123328.5k1](/packages/firegento-magesetup2)[sixlive/nova-text-copy-field

Laravel Nova text field with click to copy support

70708.2k2](/packages/sixlive-nova-text-copy-field)[happyr/message-serializer

Serialize classes the good way.

80491.3k](/packages/happyr-message-serializer)[percymamedy/laravel-dev-booter

Boost your Laravel app by registering Prod services only on Prod.

35320.7k1](/packages/percymamedy-laravel-dev-booter)

PHPackages © 2026

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