vanry/slim

Slim framework skeleton for simple and small application

Maintainers

Details

github.com/vanry/slim

Source

Issues

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

v4.0.1 2021-12-16 02:54 UTC

This package is auto-updated.

Last update: 2024-11-05 10:13:35 UTC


README

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

It uses only a few packages to keep it minimal:

  • hassankhan/config access configuration
  • monolog/monolog log errors and exceptions
  • pimple/pimple as dependency contain
  • slim/php-view as template engine

Requirements

  • PHP 7.3+ or 8.0+

Installation

composer create-project vanry/slim [my-app-name]

Replace [my-app-name] with the desired directory name for your new application or leave it empty.

You'll want to:

  • Point your virtual host document root to your new application's public directory.
  • Ensure storage directory is web writable.

Start

To run the application in development, you can run these commands

cd [my-app-name]

composer serve

After that, open http://localhost:8000 in your browser.

Run this command in the application directory to run the test suite

composer test

Additonal test methods are in tests/TestCase.php, you are not limited to add your own.

That's it! Now go build something cool.

License

It is open-sourced software licensed under the MIT license.