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. [Framework](/categories/framework)
4. /
5. spackage/firstpackage

ActiveLibrary[Framework](/categories/framework)

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

First Package

23PHP

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 today

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

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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://avatars.githubusercontent.com/u/8361967?v=4)[Sapan Kumar Mohanty](/maintainers/TravelXML)[@TravelXML](https://github.com/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)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M300](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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