PHPackages                             enlivenapp/hello-world-plugin - 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. enlivenapp/hello-world-plugin

ActiveFlightphp-plugin[Framework](/categories/framework)

enlivenapp/hello-world-plugin
=============================

Reference FlightPHP plugin demonstrating proper MVC structure for FlightSchool

0.2.0(2mo ago)02MITPHPPHP ^8.1

Since Apr 16Pushed 2mo agoCompare

[ Source](https://github.com/enlivenapp/FlightPHP-Hello-World-Plugin)[ Packagist](https://packagist.org/packages/enlivenapp/hello-world-plugin)[ RSS](/packages/enlivenapp-hello-world-plugin/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

[![Stable? Not Quite Yet](https://camo.githubusercontent.com/8712c441bb32fd8db507e0008c5d13e30def50064f8fcbc689fbcf5191f7d2af/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652533462d6e6f7425323071756974652532307965742d626c75653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/enlivenapp/hello-world-plugin)[![License](https://camo.githubusercontent.com/930e9b4d0c54aeac684e16aeb497d66d02613c0696a554d12c179510d8674725/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656e6c6976656e6170702f68656c6c6f2d776f726c642d706c7567696e3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/enlivenapp/hello-world-plugin)[![PHP Version](https://camo.githubusercontent.com/356f16d4113d59f998cb49287200204339b497a2f6cba6e6e0b4745adbf17bad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f656e6c6976656e6170702f68656c6c6f2d776f726c642d706c7567696e3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/enlivenapp/hello-world-plugin)[![Monthly Downloads](https://camo.githubusercontent.com/7e94301be7e58bf0551b270d99325f6e1e75b1e755921e954d7d2f2ea6f8a623/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f656e6c6976656e6170702f68656c6c6f2d776f726c642d706c7567696e3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/enlivenapp/hello-world-plugin)[![Total Downloads](https://camo.githubusercontent.com/4937c0e48d1464ca37f4c1ca43dbd13fbe087d70305db51daaac2b50ded31aa5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e6c6976656e6170702f68656c6c6f2d776f726c642d706c7567696e3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/enlivenapp/hello-world-plugin)[![GitHub Issues](https://camo.githubusercontent.com/90b4d2b8e36fa0cf4c0d089520467d6488186d1cbe1e1a87ad9ec15d58915f3b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f656e6c6976656e6170702f466c696768745048502d48656c6c6f2d576f726c642d506c7567696e3f7374796c653d666f722d7468652d6261646765)](https://github.com/enlivenapp/FlightPHP-Hello-World-Plugin/issues)[![Contributors](https://camo.githubusercontent.com/7d0d4ab658584c36449c091f302e33029d466d984a6d7ba294a903c8b10c94f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f656e6c6976656e6170702f466c696768745048502d48656c6c6f2d576f726c642d506c7567696e3f7374796c653d666f722d7468652d6261646765)](https://github.com/enlivenapp/FlightPHP-Hello-World-Plugin/graphs/contributors)[![Latest Release](https://camo.githubusercontent.com/a6d6ef36fd43a8d46ecdde7a71bcf0fd545f7457ddff6186553535231c80628d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f656e6c6976656e6170702f466c696768745048502d48656c6c6f2d576f726c642d506c7567696e3f7374796c653d666f722d7468652d6261646765)](https://github.com/enlivenapp/FlightPHP-Hello-World-Plugin/releases)[![Contributions Welcome](https://camo.githubusercontent.com/9db3f8b82ea88469efd296a9305fc00f40b4c9450bb6b539d42d339fa6963444/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d626c75653f7374796c653d666f722d7468652d6261646765)](https://github.com/enlivenapp/FlightPHP-Hello-World-Plugin/pulls)

Hello World Plugin
==================

[](#hello-world-plugin)

A reference plugin for FlightPHP apps using the [FlightSchool](https://github.com/enlivenapp/FlightPHP-Flight-School) plugin loader. Use it as a starting point when building your own plugin.

What it demonstrates
--------------------

[](#what-it-demonstrates)

- Returning config values with auto-prefixed keys (Config/Config.php)
- Defining routes that get auto-prefixed by the PluginLoader (Config/Routes.php)
- Three different ways to get a config value into a controller method
- Providing views that the host app can override
- Creating runway commands

Config and route prefixes
-------------------------

[](#config-and-route-prefixes)

The PluginLoader auto-prefixes config keys and routes based on the package name so plugins don't step on each other. This plugin's defaults are:

DefaultWith override uncommented**Config key**`enlivenapp.hello-world-plugin``hello-world`**Route prefix**`/enlivenapp_hello_world_plugin``/hello-world`To use the shorter versions, set `configPrepend` and `routePrepend` inside the returned array in `src/Config/Config.php`.

Plugin structure
----------------

[](#plugin-structure)

```
src/
  Plugin.php                   'hello-world',
    'routePrepend' => 'hello-world',
    'greeting' => 'Hello from a vendor plugin!',
];
```

Reading config
--------------

[](#reading-config)

`$app` is available in Config/ files, route files, and controllers (passed to the constructor). Read the full config array, then index into it:

```
$config = $app->get('enlivenapp.hello-world-plugin');
$greeting = $config['greeting'];
```

Models and services don't receive `$app` automatically — pass the values they need as parameters.

Routes
------

[](#routes)

The PluginLoader wraps all routes in a prefix group automatically. With the default prefix:

RouteResponseHow it gets the greetingGET `/enlivenapp_hello_world_plugin`HTML viewPassed as a method parameter from Routes.phpGET `/enlivenapp_hello_world_plugin/hola`JSONReads `$this->config` (set in the constructor)GET `/enlivenapp_hello_world_plugin/hello`HTML viewPassed as a method parameter from Routes.phpGET `/enlivenapp_hello_world_plugin/hallo`JSONReads config from `$app->get()` in the methodWith `'routePrepend' => 'hello-world'` set in the returned config array, routes become `/hello-world`, `/hello-world/hola`, etc.

Overriding views
----------------

[](#overriding-views)

The plugin includes a ready-to-use override template. Copy it to your app's views directory:

```
cp vendor/enlivenapp/hello-world-plugin/src/Views/app-override-index.php \
   app/views/enlivenapp/hello-world-plugin/index.php
```

You may need to create the directory first:

```
mkdir -p app/views/enlivenapp/hello-world-plugin
```

Once the override is in place, the plugin will use your version instead of its own.

License
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance84

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Every ~5 days

Total

4

Last Release

82d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3036663?v=4)[Mike W](/maintainers/enlivenapp)[@enlivenapp](https://github.com/enlivenapp)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/enlivenapp-hello-world-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/enlivenapp-hello-world-plugin/health.svg)](https://phpackages.com/packages/enlivenapp-hello-world-plugin)
```

###  Alternatives

[nineinchnick/edatatables

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

173.2k](/packages/nineinchnick-edatatables)[alizharb/laravel-modular

A professional, framework-agnostic modular architecture for Laravel 11+. Features zero-config autoloading, 29+ Artisan command overrides, and seamless Vite integration.

211.6k9](/packages/alizharb-laravel-modular)[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)
