Download the PHP package milkmeowo/starter-framework without Composer

On this page you can find all versions of the php package milkmeowo/starter-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package starter-framework

starter-framework

Latest Stable Version Latest Unstable Version Total Downloads StyleCI Code Climate Scrutinizer Code Quality Build Status Analytics License

Overview

This package is suitable for Restful API oriented projects

The Restful APIs as a backend layer which provide simple unified interfaces for frontend: Web and Mobile apps.

It utilized Laravel Passport to authenticate protected resources.

It is fully utilised Repository Design pattern.

Features

Getting started

Installation via Composer

Register the ServiceProvider

Register the starter-framework service provider by adding it to the providers array.

Laravel

Lumen

Modify the bootstrap flow (bootstrap/app.php file)

Publish the configure

then copy config files into your project.you can finish this manually

or for Laravel you can use

and change config/auth.php api guards driver to passport

Migrate and install Laravel Passport

Packages Documents

Dingo

improve

Exception Handle Register

add src/Framework/Dingo/Providers/ExceptionHandlerServiceProvider to register the common Exception handle

ResponseWasMorphed Event Listener

fire src/Framework/Dingo/Listeners/AddPaginationLinksToResponse

Auth Providers

add Passport and improved Oauth2 Auth Providers

you can use with config

reference:

Dingo Api

Dingo Api Wiki documentation

dingo-api-wiki-zh.

l5-Repository

improve

artisan command

auto generate below files

Routes Endpoint

files routes/api.php with placeholder //:end-routes:

Verb URI Action Route Name
GET /users index users.index
GET /users/trashed trashedIndex users.trashed.index
POST /users store users.store
GET /users/{id} show users.show
GET /users/trashed/{id} trashedShow users.trashed.show
PUT /users/{id} update users.update
PUT /users/{id}/restore restore users.restore
DELETE /users/{id} destroy users.destroy

ObserveEvent

Models and Repositories/Eloquent has listen below methods events with $priority = 99

Models also has default record track event listen

fields default description
$autoRelatedUserId protect / true Indicates if the model should be auto set user_id.
$userstamps protect / true Indicates if the model should be recorded users.
$ipstamps protect / true Indicates if the model should be recorded ips.
RELATED_USER_ID const / 'user_id' The name of the "related user id" column.
CREATED_BY const / 'created_by' The name of the "created by" column.
UPDATED_BY const / 'updated_by' The name of the "updated by" column.
CREATED_IP const / 'created_ip' The name of the "created ip" column.
UPDATED_IP const / 'updated_ip' The name of the "updated ip" column.
DELETED_IP const / 'deleted_ip' The name of the "deleted ip" column.
DELETED_BY const / 'deleted_by' The name of the "deleted by" column.

Repositories/Eloquent

reference:

l5-repository

l5-repository Usage

prettus/laravel-validator

league/fractal

Laravel 的中大型專案架構.

Illuminate Database

improve

laravel passport

Laravel

reference:

Laravel Passport

Official Documentation.

Lumen

Installed routes

Adding this service provider, will mount the following routes:

Verb Path NamedRoute Controller Action Middleware
POST /oauth/token \Laravel\Passport\Http\Controllers\AccessTokenController issueToken -
GET /oauth/tokens \Laravel\Passport\Http\Controllers\AuthorizedAccessTokenController forUser auth
DELETE /oauth/tokens/{token_id} \Laravel\Passport\Http\Controllers\AuthorizedAccessTokenController destroy auth
POST /oauth/token/refresh \Laravel\Passport\Http\Controllers\TransientTokenController refresh auth
GET /oauth/clients \Laravel\Passport\Http\Controllers\ClientController forUser auth
POST /oauth/clients \Laravel\Passport\Http\Controllers\ClientController store auth
PUT /oauth/clients/{client_id} \Laravel\Passport\Http\Controllers\ClientController update auth
DELETE /oauth/clients/{client_id} \Laravel\Passport\Http\Controllers\ClientController destroy auth
GET /oauth/scopes \Laravel\Passport\Http\Controllers\ScopeController all auth
GET /oauth/personal-access-tokens \Laravel\Passport\Http\Controllers\PersonalAccessTokenController forUser auth
POST /oauth/personal-access-tokens \Laravel\Passport\Http\Controllers\PersonalAccessTokenController store auth
DELETE /oauth/personal-access-tokens/{token_id} \Laravel\Passport\Http\Controllers\PersonalAccessTokenController destroy auth

Please note that some of the Laravel Passport's routes had to 'go away' because they are web-related and rely on sessions (eg. authorise pages). Lumen is an API framework so only API-related routes are present.

reference:

Lumen Passport

Ide-helper

Register service provider when APP_ENV != production

Automatic phpDoc generation for Laravel Facades

Automatic phpDocs for models

PhpStorm Meta for Container instances

reference:

IDE Helper Generator

Clockwork

Register service provider when APP_DUBUG = true and APP_ENV != production

reference:

Clockwork

Cors

Usage

The ServiceProvider adds a route middleware you can use, called cors. You can apply this to a route or group to add CORS support.

If you want CORS to apply for all your routes, add it as global middleware in app/http/Kernel.php:

reference:

barryvdh/laravel-cors

License

The starter-framework is open-sourced software licensed under the MIT license.


All versions of starter-framework with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
barryvdh/laravel-cors Version ^0.8.6
barryvdh/laravel-ide-helper Version ^2.3
dingo/api Version 1.0.x@dev
doctrine/dbal Version ^2.5
dusterio/lumen-passport Version ^0.1.9
itsgoingd/clockwork Version ^1.13
league/fractal Version ^0.15.0
overtrue/wechat Version ^3.2
prettus/l5-repository Version ^2.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package milkmeowo/starter-framework contains the following files

Loading the files please wait ....