PHPackages                             imrgrgs/web-slim3 - 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. imrgrgs/web-slim3

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

imrgrgs/web-slim3
=================

web slim3 skeleton and twig

01PHP

Since Sep 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/imrgrgs/web-slim3)[ Packagist](https://packagist.org/packages/imrgrgs/web-slim3)[ RSS](/packages/imrgrgs-web-slim3/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Slim Framework v3.5 Skeleton
================================

[](#php-slim-framework-v35-skeleton)

Use this skeleton application to quickly setup and start working on a new Slim Framework v3.5 application.

This skeleton application was built for Composer. This makes setting up a new Slim Framework v3.5 application quick and easy.

[![Latest Stable Version](https://camo.githubusercontent.com/cab1b6dfe1dc4a395e6c575d90ee7fbd5c3d4133d6f8b355b20d62408833f1bb/68747470733a2f2f706f7365722e707567782e6f72672f696d72677267732f7765622d736c696d332f762f737461626c652e737667)](https://packagist.org/packages/imrgrgs/web-slim3) [![Total Downloads](https://camo.githubusercontent.com/8354f4f111581402d6dec868584c21afc9d0386c7d713bdfeb39f12db814f40b/68747470733a2f2f706f7365722e707567782e6f72672f696d72677267732f7765622d736c696d332f646f776e6c6f6164732e737667)](https://packagist.org/packages/imrgrgs/web-slim3) [![License](https://camo.githubusercontent.com/5f32aa7ed180ebc2db2b1bb777438115fea8b860aba5c5f38ff18a807a4a208b/68747470733a2f2f706f7365722e707567782e6f72672f696d72677267732f7765622d736c696d332f6c6963656e73652e737667)](https://camo.githubusercontent.com/5f32aa7ed180ebc2db2b1bb777438115fea8b860aba5c5f38ff18a807a4a208b/68747470733a2f2f706f7365722e707567782e6f72672f696d72677267732f7765622d736c696d332f6c6963656e73652e737667)

- [PSR-2](http://www.php-fig.org/psr/psr-2/ "PHP Framework Interop Group")
- [PSR-4](http://www.php-fig.org/psr/psr-4/ "PHP Framework Interop Group")
- PHP 5.6
- Namespaced

- Helpers
- Services
- Twig Views
- Flash Messages
- Symfony VarDumper
- Logging with Monolog
- Folders structure with sense
- Environment variables with Dotenv

How to install this skeleton
----------------------------

[](#how-to-install-this-skeleton)

Run this command from the directory in which you want to install your new Slim Framework v3.5 Skeleton.

```
composer create-project -s dev imrgrgs/web-slim3 [my-app-name]
```

Replace `[my-app-name]` with the desired directory name for your new application. You'll want to:

- Point your virtual host document root to your new application's `public/` directory.
- Ensure `storage/` is web writeable.

Most relevant skeleton folders
------------------------------

[](#most-relevant-skeleton-folders)

- /app : Application code (App Namespace)
    - ./Controllers : Add your controllers here
    - ./Middlewares : Add your middlewares here
    - ./Routes : Add your routes here
    - ./Services : Add your services here
    - ./Views : Add your Twig views here
- /config : Add/modify your configurations here
- /public : Add your assets files here

Controllers methods
-------------------

[](#controllers-methods)

- getContainer() : Returns the Slim App container
- getService(string $service) : Returns service from container by name
- getRequest() : Returns HTTP Request
- getResponse() : Returns HTTP Response
- getView() : Returns Twig View
- render(string $template, array $data) : Renders Twig page stored in Views folder

Middleware methods
------------------

[](#middleware-methods)

- getContainer() : Returns the Slim App container
- getService(string $service) : Returns service from container by name

Helpers methods
---------------

[](#helpers-methods)

- d() : Symfony VarDumper and continue
- dd() : Symfony VarDumper and die
- env(string $variable, string $default) : Return environment variables with
- base\_path() : Returns base path location
- app\_path() : Returns app path location
- config\_path() : Returns config path location
- public\_path() : Returns public path location
- storage\_path() : Returns storage path location

Middlewares
-----------

[](#middlewares)

You can add as many middlewares as you want in a clean way (`/app/Middlewares`).

After add your middleware, you can enable or disable it in `config/middlewares.php` configuration file.

Routes
------

[](#routes)

You can add as many routes files as you want (`/app/Routes`), but you need to enable these files in `/apps/Routes/app.php` file.

Services
--------

[](#services)

You can add as many services as you want in a clean way (`/app/Services`).

After add your service, you can enable or disable it in `config/services.php` configuration file.

Configurations
--------------

[](#configurations)

You can add as many configurations files as you want (`/config`), but you need to enable these files in `/config/app.php` file.

Twig Globals
------------

[](#twig-globals)

flash : To get Flash Messages

Demo pages
----------

[](#demo-pages)

Try the skeleton demo pages.

#### Welcome page:

[](#welcome-page)

http(s)://virtualhost.int/

#### Hello user:

[](#hello-user)

http(s)://virtualhost.int/hello/\[name\]

**NOTE:** Replace `[name]` with the desired User name

\--

### Enjoy the simplicity :oP

[](#enjoy-the-simplicity-op)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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/c989809672bacd3dee0e51f5c4d1dc17a2cf823a7aa2099072035fe76cbe41ca?d=identicon)[imrgrgs](/maintainers/imrgrgs)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/imrgrgs-web-slim3/health.svg)

```
[![Health](https://phpackages.com/badges/imrgrgs-web-slim3/health.svg)](https://phpackages.com/packages/imrgrgs-web-slim3)
```

###  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)
