PHPackages                             daycry/restserver - 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. [API Development](/categories/api)
4. /
5. daycry/restserver

Abandoned → [daycry/restful](/?search=daycry%2Frestful)Library[API Development](/categories/api)

daycry/restserver
=================

Rest Server for Codeigniter 4

v7.2.10(3y ago)7616↓100%MITPHPPHP &gt;=7.4 || ^8.0

Since Feb 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/daycry/restserver)[ Packagist](https://packagist.org/packages/daycry/restserver)[ Docs](https://github.com/daycry/restserver)[ RSS](/packages/daycry-restserver/feed)WikiDiscussions development Synced today

READMEChangelog (10)Dependencies (21)Versions (108)Used By (0)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/donate?business=SYC5XDT23UZ5G&no_recurring=0&item_name=Thank+you%21&currency_code=EUR)

Rest Server
===========

[](#rest-server)

Rest Server with Doctrine for Codeigniter 4

[![Build Status](https://github.com/daycry/restserver/workflows/PHP%20Tests/badge.svg)](https://github.com/daycry/restserver/actions?query=workflow%3A%22PHP+Tests%22)[![Coverage Status](https://camo.githubusercontent.com/d5072941128db1e80cd643ef1a83c5353e8e7d11ce4abb979cefd61dab8502b4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6461796372792f726573747365727665722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/daycry/restserver?branch=master)[![Downloads](https://camo.githubusercontent.com/619ab03c37c34929b4041f387e499c720974fd177949c6ccda3da5f222e3670d/68747470733a2f2f706f7365722e707567782e6f72672f6461796372792f726573747365727665722f646f776e6c6f616473)](https://packagist.org/packages/daycry/restserver)[![GitHub release (latest by date)](https://camo.githubusercontent.com/a4338da70b9de0b082f1558b596ccb944835d1492664c397f08566e74af34ab9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6461796372792f72657374736572766572)](https://packagist.org/packages/daycry/restserver)[![GitHub stars](https://camo.githubusercontent.com/8ad5456b7ff1933a2f39c1a9ae3c62b660c54a840131b87ff0495141a6d1aef3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6461796372792f72657374736572766572)](https://packagist.org/packages/daycry/restserver)[![GitHub license](https://camo.githubusercontent.com/d441909359d3a04de3772a7ad87bf031212442863186ba48f693863549c1d9d7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6461796372792f72657374736572766572)](https://github.com/daycry/restserver/blob/master/LICENSE)

**Version 7**
-------------

[](#version-7)

This version breaks compatibility with previous versions, since it contains new automated features, restructuring of the database with new foreign keys, so if you update, check that the names of the tables are in the plural.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#this-version-breaks-compatibility-with-previous-versions-since-it-contains-new-automated-features-restructuring-of-the-database-with-new-foreign-keys-so-if-you-update-check-that-the-names-of-the-tables-are-in-the-plural)

Installation via composer
-------------------------

[](#installation-via-composer)

Use the package with composer install

```
> composer require daycry/restserver

```

Manual installation
-------------------

[](#manual-installation)

Download this repo and then enable it by editing **app/Config/Autoload.php** and adding the **Daycry\\RestServer**namespace to the **$psr4** array. For example, if you copied it into **app/ThirdParty**:

```
$psr4 = [
    'Config'      => APPPATH . 'Config',
    APP_NAMESPACE => APPPATH,
    'App'         => APPPATH,
    'Daycry\RestServer' => APPPATH .'ThirdParty/restserver/src',
];
```

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

[](#configuration)

Run command:

```
> php spark restserver:publish
> php spark settings:publish
> php spark cronjob:publish
> php spark jwt:publish

```

This command will copy a config file to your app namespace. Then you can adjust it to your needs. By default file will be present in `app/Config/RestServer.php`.

```
> php spark migrate -all

```

This command create rest server tables in your database.

If you want load and Example Seed you can use this command.

```
> php spark db:seed Daycry\RestServer\Database\Seeds\ExampleSeeder

```

More information about install doctrine:

Usage Loading Library
---------------------

[](#usage-loading-library)

```
