PHPackages                             slim4/gslim-skeleton - 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. slim4/gslim-skeleton

ActiveProject[Framework](/categories/framework)

slim4/gslim-skeleton
====================

slim 4 microservice skeleton

v1.1.0(5y ago)674MITPHP

Since Apr 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/suartana/slim4-gslim-skeleton)[ Packagist](https://packagist.org/packages/slim4/gslim-skeleton)[ RSS](/packages/slim4-gslim-skeleton/feed)WikiDiscussions master Synced today

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

SLIM 4 - API SKELETON
=====================

[](#slim-4---api-skeleton)

Useful framework for RESTful API development with JSON schema validation, using [Slim PHP micro framework](https://www.slimframework.com).

Used technologies: "PHP 7, Slim 4, MySQL, Doctrine, PHPUnit, dotenv &amp; vagrant".

[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE.md)

⚙️ QUICK INSTALL:
-----------------

[](#gear-quick-install)

### Requirements:

[](#requirements)

- Composer.
- PHP 7.2+.
- MySQL/MariaDB.
- or Vagrant.

### With Composer:

[](#with-composer)

You can create a new project running the following commands:

```
$ composer create-project slim4/gslim-skeleton [my-app]
```

#### Configure your connection to MySQL Server:

[](#configure-your-connection-to-mysql-server)

By default, the API use a MySQL Database.

You should check and edit this configuration in your `scr/Config/.env` file:

```
APP_URL=http://yourproject.lo/
APP_DEBUG=true
APP_ID=1
APP_ENV=local

#Database
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=gslim
DB_USERNAME=vagrant
DB_PASSWORD=vagrant
DB_CHARSET=utf8
DB_COLLATION=utf8_unicode_ci
DB_PREFIX=

# Cache twig
CACHE=false

#LOG_PATH
LOG_PATH='storage/logs/app.log'

```

📦 DEPENDENCIES:
---------------

[](#package-dependencies)

### LIST OF REQUIRE DEPENDENCIES:

[](#list-of-require-dependencies)

- [slim/slim](https://github.com/slimphp/Slim): Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
- [slim/psr7](https://github.com/slimphp/Slim-Psr7): PSR-7 implementation for use with Slim 4.
- [slim/csrf](https://github.com/slimphp/Slim-Psr7): Slim Framework CSRF Protection.
- [doctrine/orm](https://www.doctrine-project.org/projects/orm.html): Object Relational Mapper.
- [justinrainbow/json-schema](https://github.com/justinrainbow/json-schema): JSON Schema for PHP.
- [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv): Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

### LIST OF DEVELOPMENT DEPENDENCIES:

[](#list-of-development-dependencies)

- [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit): The PHP Unit Testing framework.
- [symfony/console](https://github.com/symfony/console): The Console component eases the creation of beautiful and testable command line interfaces

PHP Slim command line: $ php slim
=================================

[](#php-slim-command-line--php-slim)

```
  Slim Command Management Console 1.0

  Usage:
    command [options] [arguments]

  Options:
    -h, --help            Display help for the given command. When no command is given display help for the list command
    -q, --quiet           Do not output any message
    -V, --version         Display this application version
        --ansi            Force ANSI output
        --no-ansi         Disable ANSI output
    -n, --no-interaction  Do not ask any interactive question
    -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

  Available commands:
    help              Display help for a command
    list              List commands
    migrate           Perform database migration

  make
    make:command      Create command file
    make:controller   Create interface controller
    make:entity       Create Entity e. g. UserAccess = tablename user_access
    make:exception    Create service interface
    make:middleware   Create Middleware
    make:migration    Create database migration file e. g. create_user_access_table / update_user_access_table
    make:service      Create service interface
    make:trait        Create interface trait
  migrate
    migrate:rollback  Roll back the database migration
  schedule
    schedule:run      Run timed task scheduling commands
```

🔖 ENDPOINTS:
------------

[](#bookmark-endpoints)

### BY DEFAULT:

[](#by-default)

- CSRF Token: `GET /api/token`
- Health Check: `GET /healthcheck`

😎 THAT'S IT!
------------

[](#sunglasses-thats-it)

Now go build a cool SLIM API.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

1852d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac27aac46d3220d7aa30c5fd93b35df6378ca5f677f1c1eaf9c12f2643f749cc?d=identicon)[gsuartana](/maintainers/gsuartana)

---

Top Contributors

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

---

Tags

console-applicationcsrf-protectioncsrf-tokensdoctrine-ormphp-diphp-di-containerphp-skeletonphp7psr-4psr-7skeletonslimslim4slim4-skeletonsymfonyslimmicro-frameworkMicroserviceslim4slim 4slim-framework

### Embed Badge

![Health badge](/badges/slim4-gslim-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/slim4-gslim-skeleton/health.svg)](https://phpackages.com/packages/slim4-gslim-skeleton)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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