2017 © Pedro Peláez
 

library restful-api-helper

This is a starter package for a laravel api using JWT authentication and the Dingo api package

image

ralphowino/restful-api-helper

This is a starter package for a laravel api using JWT authentication and the Dingo api package

  • Thursday, April 20, 2017
  • by ralphowino
  • Repository
  • 7 Watchers
  • 16 Stars
  • 200 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 8 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

API STARTER PACKAGE

Build Status, (*1)

This is a laravel package that helps you start of building a laravel API. It contains useful command generators to generate various files for your API and is completely configurable. The generators include: * starter:init * starter:model <name> --fillable[=FILLABLE] --migration --relationships[=RELATIONSHIPS] --repository --schema[=SCHEMA] --soft-deletes --table[=TABLE] --transformer * starter:migration <name> --schema[=SCHEMA] --soft-deletes --model[=MODEL] * starter:controller <name> --automate --except[=EXCEPT] --only[=ONLY] --plain --repository[=REPOSITORY] --resource --transformer[=TRANSFORMER] * starter:repository <name> --model * starter:transformer <name> --fields[=FIELDS] --includes[=INCLUDES] --model[=MODEL], (*2)

Installation

Step 1: Install the composer packages

Add, (*3)

{
   "minimum-stability" : "dev",
   "prefer-stable" : true
}

to your composer.json file., (*4)

Run in terminal, (*5)

composer require ralphowino/restful-api-helper 1.0.x-dev.

Step 2: Add the Service Provider

Add the service provider in config/app.php:, (*6)

Ralphowino\ApiStarter\ApiStarterServiceProvider::class

Step 3: Publish the packages configuration files

Publish the package's assets by running, (*7)

php artisan vendor:publish --provider="Ralphowino\ApiStarter\ApiStarterServiceProvider"

Step 4: Initialize the package

Initialize the project by running, (*8)

php artisan starter:init

Select directories to save the generated files in., (*9)

NB: Just press enter for every question to retain the default., (*10)

Step 5: Generate a new jwt token

Generate a new jwt token for the application by running, (*11)

php artisan jwt:generate

AND YOU ARE READY TO GO!, (*12)

For more documentation on the package checkout https://ralphowino.github.io/restful-api-helper/, (*13)

The Versions

20/04 2017

dev-master

9999999-dev

This is a starter package for a laravel api using JWT authentication and the Dingo api package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Samuel Kubai

laravel api starter