PHPackages                             emir/kapi - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. emir/kapi

ActiveProject[HTTP &amp; Networking](/categories/http)

emir/kapi
=========

Slim Framework based API skeleton application for rapid development

1.0.0(8y ago)18191MITPHPPHP &gt;=7.0CI failing

Since Apr 23Pushed 8y ago14 watchersCompare

[ Source](https://github.com/emir/kapi)[ Packagist](https://packagist.org/packages/emir/kapi)[ Docs](http://github.com/emir/kapi)[ RSS](/packages/emir-kapi/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

KAPI: Doors for PHP - v1.0.0
============================

[](#kapi-doors-for-php---v100)

[![Build Status](https://camo.githubusercontent.com/cae068527ad3a0a2eac4b946a889c236e2fa5aa2e45c3944ddf8e4d53cd5798c/68747470733a2f2f7472617669732d63692e6f72672f656d69722f6b6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/emir/kapi)

Slim Framework based simple helper to generate RESTful API's and applications, requires PHP 7.

KAPI means "door" in Turkish.

Creating a Project skeleton
---------------------------

[](#creating-a-project-skeleton)

```
git clone https://github.com/emir/kapi myproject
cd myproject
composer install

```

It will create an example project.

Edit Configuration
------------------

[](#edit-configuration)

```
$EDITOR .env

```

Migrations
----------

[](#migrations)

```
phinx migrate

```

Running the Project
-------------------

[](#running-the-project)

```
cd myproject
php -S localhost:8080 -t public

```

That's all! :)

Getting Started
---------------

[](#getting-started)

You should define your URLs in *routes.php*:

```
# src/routes.php
