PHPackages                             daniel-griffiths/vertex - 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. [Templating &amp; Views](/categories/templating)
4. /
5. daniel-griffiths/vertex

ActiveLibrary[Templating &amp; Views](/categories/templating)

daniel-griffiths/vertex
=======================

A simple PHP framework

45PHP

Since Aug 25Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Daniel-Griffiths/vertex)[ Packagist](https://packagist.org/packages/daniel-griffiths/vertex)[ RSS](/packages/daniel-griffiths-vertex/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Vertex
======

[](#vertex)

A simple PHP framework inspired by Laravel

[![GitHub Actions](https://github.com/Daniel-Griffiths/vertex/actions/workflows/tests.yml/badge.svg)](https://github.com/Daniel-Griffiths/vertex/actions)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6135425e65adb030d54773564b86a204349760783e6443c0ff2e8486b831b92d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f44616e69656c2d4772696666697468732f7665727465782f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Daniel-Griffiths/vertex/?branch=master)

Requirements
------------

[](#requirements)

Vertex makes use of [Composer](https://getcomposer.org/) to autoload its dependencies. Be sure to run the following command after downloading the framework.

```
composer install

```

Then you can run the following command to start the built-in PHP server.

```
php -S localhost:8000 -t public

```

Configuration
-------------

[](#configuration)

All configuration options are specified in the `.env` file in the root directory. By default you will get an example file to get you started.

```
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=databasename
DB_USERNAME=root
DB_PASSWORD=root

```

There is also the option of manually declaring your setting in the `/config` directory. Simply go into any of the files in this directory and manually replace the `getenv()` functions with your desired configuration.

You can easily access any of your config options in Vertex by using the `Config::get()` method. Supply a string to the method (eg `Config::get('database')`) and it will return an array of all the values specified in that file, in this case it would be `/config/database.php`.

Routes
------

[](#routes)

Vertex uses FastRoute for all its routing needs. Routes are stored in the `app/routes.php` file. Please visit the following repo for full documentation .

Here are some example routes:

```
/* standard routes */
$route->get('/test', 'ControllerName@MethodName');
$route->post('/test', 'ControllerName@MethodName');
$route->put('/test', 'ControllerName@MethodName');
$route->delete('/test', 'ControllerName@MethodName');

/* route with parameters */
$route->get('/test/{parameter}', 'ControllerName@MethodName');

/* route with closure */
$route->get('/test', function(){
  return 'Test!';
});

/* route group */
$route->addGroup('/admin', function ($route) {
    $route->get('/dashboard', 'AdminController@dashboard'); // admin/dashboard
    $route->get('/pages', 'AdminController@pages');         // admin/pages
    $route->get('/posts', 'AdminController@posts');         // admin/posts
});

```

Templating
----------

[](#templating)

Vertex uses Laravels fantastic Blade templating engine. Views are stored in the `app/resources/views/` directory and **must** have the file extension of `.blade.php`. Please visit  for full documentation.

Here is an example blade template:

```

        App Name - @yield('title')

        @section('sidebar')
            This is the master sidebar.
        @show

            @yield('content')

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80.2% 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/b16907c3c3250b7dc02873aacc6f6dc30755f3a3945cdf5c34ced5fdb0ff5412?d=identicon)[Daniel-Griffiths](/maintainers/Daniel-Griffiths)

---

Top Contributors

[![Daniel-Griffiths](https://avatars.githubusercontent.com/u/1458314?v=4)](https://github.com/Daniel-Griffiths "Daniel-Griffiths (199 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (49 commits)")

---

Tags

bladeframeworkphpphp-frameworksimple

### Embed Badge

![Health badge](/badges/daniel-griffiths-vertex/health.svg)

```
[![Health](https://phpackages.com/badges/daniel-griffiths-vertex/health.svg)](https://phpackages.com/packages/daniel-griffiths-vertex)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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