PHPackages                             britt11654/my-first-bundle - 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. britt11654/my-first-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

britt11654/my-first-bundle
==========================

An example package for creating symfony flex bundles as plugins

00PHP

Since Nov 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/britt11654/MyFirstBundle)[ Packagist](https://packagist.org/packages/britt11654/my-first-bundle)[ RSS](/packages/britt11654-my-first-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

MyFirstBundle
=============

[](#myfirstbundle)

An example repository for creating php symfony flex bundles

### Using this bundle

[](#using-this-bundle)

U can install this plugin by installing with command: `composer require common-gateway/pet-store-plugin:dev-main`in the directory where your composer.json lives.

### Creating your own bundle

[](#creating-your-own-bundle)

##### Requirements

[](#requirements)

- [GitHub](https://github.com/login) account or organization
- [Packagist](https://packagist.org/login/) account
- [Composer](https://getcomposer.org/download/) or if your project is dockerized, [Docker Desktop](https://www.docker.com/products/docker-desktop/)

#### Using this template

[](#using-this-template)

To create your own symfony bundle. You can copy this repository for a fast start.

1. Login on [GitHub](https://github.com)
2. Use [this template](https://github.com/britt11654/MyFirstBundle/generate)
3. Name your bundle (CamelCase)
4. Press the green button `Create repository from template`
5. Update file names and namespace to your fitting
    - Open composer.json, and change the name to your fitting. The first word should be the namespace and the second the name of your bundle. Check the autoload field to be set accordingly. Note: this is kebab-case. Also read: [naming your package](https://packagist.org/about#naming-your-package)
    - Open MyFirstBundle.php and change the Bundle name and namespace. The namespace should be the same as your package name in composer.json but in CamelCase. So common-gateway/pet-store-bundle becomes britt11654/MyFirstBundle
    - Rename the /Service and /ActionHandler accordingly (or delete if not used).
    - Rename the /DependencyInjection/MyFirstExtension.php to your BundleNameExtension.php
    - Rename the /Resources/config/services.xml service and handler to your new namespace and BundleName

#### Upload to packagist

[](#upload-to-packagist)

Before we can use our bundle and code, we must have it online on packagist so we can install with composer.

1. Upload to packagist
    - Go to [Packagist](https://packagist.org)
    - Press `submit` in the top menu bar and paste your bundle's github repository link, the name from you composer.json will be used as package name.
    - If valid press `Submit`
2. Auto-update package
    - Go to your [packagist profile](https://packagist.org/profile/).
    - Press `Show API Token` and copy
    - Go to your new bundle's github repository
    - Go to your repository settings
    - Go to webhooks, and press `Add webhook`
    - As Payload URL, set
    - Keep SSL verification enabled
    - As secret, paste the copied API token from packagist
    - Set event on `Just push the event`
    - Press `Add webhook`
    - If you push new code it will now push to packagis. On packagist you should not see the auto-update warning anymore. If its still there check if your username and secret are set properly on the github webhook.

#### Using your code

[](#using-your-code)

To use the code in your library we first have to install it with composer.

Note: for docker add `docker-compose exec php` before all comands

1. Navigate with a command line to where your composer.json lives in the project you want to use this bundle.
    - Execute `composer require {full package name}:dev-main`
    - Docker users: restart your containers so symfony can recognize the new Bundle's namespace
2. Open a php file where you want to use a class.
    - Add the correct use statement (example `use CommonGateway\MyFirstBundle\Service\MyFirstService;`)
    - U can now use your class!

In the common gateway, if you want to use your code when triggered by an event with a action, make sure the class of the action object is set as the handler name including the namespace. For example if I want to use the MyFirstService I can set the MyFirstHandler as `CommonGateway\MyFirstBundle\ActionHandler\MyFirstHandler`.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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/4c31efa0d2b91499decd6370d99fa21c0a7ad9eb9e357d5a39c357a4bc2d4532?d=identicon)[britt11654](/maintainers/britt11654)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/britt11654-my-first-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/britt11654-my-first-bundle/health.svg)](https://phpackages.com/packages/britt11654-my-first-bundle)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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