PHPackages                             quimgc/hello-ng - 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. quimgc/hello-ng

ActiveLibrary

quimgc/hello-ng
===============

0.1.0(8y ago)012PHP

Since Nov 15Pushed 8y agoCompare

[ Source](https://github.com/quimgc/ComposerPackagist)[ Packagist](https://packagist.org/packages/quimgc/hello-ng)[ RSS](/packages/quimgc-hello-ng/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

ComposerPackagist
=================

[](#composerpackagist)

El primer que he fet ha sigut crear un directori amb el nom de ComposerPackagist.

Amb l'ajuda de PHPStorm he creat un directori amb el nom de **src** i a dins d'aquest dir he creat una classe PHP anomenat **Hello.php**.

Codi class **Hello.php**:

```
namespace Quimgc;

use Faker\Factory;
class Hello
{
    public function hello() {
    $faker = Factory::create();
    echo 'Hola ' . $faker->name;
    }
}

```

Un cop creada la classe, al directori **ComposerPackagist** s'ha d'executar:

```
composer init

```

Quan pregunta **Search for a package:** s'ha de posar:

```
fzaninotto/faker

```

Si pregunta per la versió clic **Enter**.

Resultat fitxer **composer.json**:

```
{
    "name": "quimgc/hello-ng",
    "require": {
        "fzaninotto/faker": "^1.7"
    },
    "authors": [
        {
            "name": "quimgc",
            "email": "quimgonzalez@iesebre.com"
        }
    ],
    "autoload": {
  "psr-4": {
      "Quimgc\\": "src/"
  }
},
}

```

A continuació s'ha d'executar **composer install**.

Al directori arrel del paquet, s'ha de crear un nou directori anomenat **tests** i a dins s'ha de crear un fitxer php anomenat **test\_hello.php**.

Dins del fitxer **test\_hello.php** s'ha d'afegir:

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

require 'src/Hello.php';

$hello = new Hello();

$hello->hello();

```

Un cop fet tots aquests passos, al directori **ComposerPackagist** s'ha d'executar:

```
git tag -a 0.1.0

```

Això serveix per crear una versió.

**NOTA**: Per guardar **Ctrl KD**

Un cop fet això es fa:

```
git push origin 0.1.0

```

Packagist.org
-------------

[](#packagistorg)

Quan ja està el paquet pujat a **github**, s'ha d'anar a la web:

```
https://packagist.org/packages/submit

```

I afegir el paquet amb la url:

```
https://github.com/quimgc/ComposerPackagist

```

Ajudes
------

[](#ajudes)

"autoload": { "files": "src/Hello.php" }

"psr-4": { "Quimgc\\": "src/" }

prova

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3099d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/799782b880577dea8770416c6300c9c4a4b7b9e081adba9f04232a2c6f8ffc64?d=identicon)[quimgc](/maintainers/quimgc)

---

Top Contributors

[![quimgc](https://avatars.githubusercontent.com/u/23049484?v=4)](https://github.com/quimgc "quimgc (1 commits)")

### Embed Badge

![Health badge](/badges/quimgc-hello-ng/health.svg)

```
[![Health](https://phpackages.com/badges/quimgc-hello-ng/health.svg)](https://phpackages.com/packages/quimgc-hello-ng)
```

###  Alternatives

[refinery29/test-util

Provides a test helper, generic data providers, and assertions.

1554.0k3](/packages/refinery29-test-util)[vigneshc91/laravel-test-generator

Laravel package for generating unit test automatically

248.7k](/packages/vigneshc91-laravel-test-generator)[emanueleminotto/faker-service-provider

Faker Service Provider for Silex

162.9k](/packages/emanueleminotto-faker-service-provider)

PHPackages © 2026

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