PHPackages                             spackage/firstpackage - 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. spackage/firstpackage

ActiveLibrary

spackage/firstpackage
=====================

First Package

13PHP

Since Jul 17Pushed 5y agoCompare

[ Source](https://github.com/TravelXML/First-PHP-Package-Example)[ Packagist](https://packagist.org/packages/spackage/firstpackage)[ RSS](/packages/spackage-firstpackage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Write Your First PHP Package, PHP Package Example
=================================================

[](#write-your-first-php-package-php-package-example)

A quick test composer package, published on Packagist

RUN: composer require spackage/firstpackage:dev-master

then run below code here

require '../vendor/autoload.php';

use spackage\\firstpackage\\Index;

$greeting = new Index();

echo $greeting-&gt;greet("Hello Composer");

enjoy coding :)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

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.

### Community

Maintainers

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

---

Top Contributors

[![TravelXML](https://avatars.githubusercontent.com/u/8361967?v=4)](https://github.com/TravelXML "TravelXML (11 commits)")

---

Tags

packagepackagesphpphp7phpframework

### Embed Badge

![Health badge](/badges/spackage-firstpackage/health.svg)

```
[![Health](https://phpackages.com/badges/spackage-firstpackage/health.svg)](https://phpackages.com/packages/spackage-firstpackage)
```

PHPackages © 2026

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