PHPackages                             hoannc54/base\_package - 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. hoannc54/base\_package

ActiveLibrary

hoannc54/base\_package
======================

base package for creating other packages.

06PHP

Since Mar 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hoannc54/base_package)[ Packagist](https://packagist.org/packages/hoannc54/base_package)[ RSS](/packages/hoannc54-base-package/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

**Tài liệu được tạo ra để lưu hành và đào tạo nội bộ, anh em coder đi qua có ý kiến đóng góp vui lòng viết issue hoặc liên hệ trực tiếp**

Base composer package for package development
---------------------------------------------

[](#base-composer-package-for-package-development)

- [Sample readme](sample_readme.md) rename file này thành file readme.md của bạn :)

Viết test
---------

[](#viết-test)

- Việc viết test có thể sẽ hơi khó khăn cho các bạn mới làm kiểu viết test trước code. Do đó có thể khởi tạo một số class base để mường tượng được package của mình sẽ làm gì, cho ra cái gì sau đó viết test cho các hàm viết tạm đó(chưa viết code xử lý, chỉ giả lập đầu vào đầu ra).
- Với các trường hợp cần viết test cho 1 đầu ra nào đó bạn phân vân, hãy viết vào issue để được hỗ trợ.
- Viết test không nhất thiết phải sử dụng phpunit, đối với đầu ra kiểm chứng bằng mắt thì nên viết test sao cho người dùng thấy được đầu vào đầu ra và mô tả đầu ra kỳ vọng như thế nào.

### Write testing showcases

[](#write-testing-showcases)

*test file cho một số trường hợp cụ thể (thêm trường hợp của bạn vào [issue](https://github.com/vuthaihoc/base_package/issues/new) để chia sẻ/trao đổi)*

PHPUNIT config generate
-----------------------

[](#phpunit-config-generate)

```
#$ ./vendor/bin/phpunit --generate-configuration
PHPUnit 7.0.2 by Sebastian Bergmann and contributors.

Generating phpunit.xml in /Users/hocvt/Documents/webroot/kw_system/packages/base

Bootstrap script (relative to path shown above; default: vendor/autoload.php):
Tests directory (relative to path shown above; default: tests):
Source directory (relative to path shown above; default: src):

Generated phpunit.xml in /Users/hocvt/Documents/webroot/kw_system/packages/base

```

PHPUNIT extensions
------------------

[](#phpunit-extensions)

Có một số project cần test với tool đặc thù riêng thì xem thêm [danh sách extensions](https://phpunit.de/extensions.html)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

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

---

Top Contributors

[![hoannc54](https://avatars.githubusercontent.com/u/10738135?v=4)](https://github.com/hoannc54 "hoannc54 (2 commits)")[![vuthaihoc](https://avatars.githubusercontent.com/u/2509658?v=4)](https://github.com/vuthaihoc "vuthaihoc (2 commits)")

### Embed Badge

![Health badge](/badges/hoannc54-base-package/health.svg)

```
[![Health](https://phpackages.com/badges/hoannc54-base-package/health.svg)](https://phpackages.com/packages/hoannc54-base-package)
```

PHPackages © 2026

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