Download the PHP package meezaan/microservice-template without Composer

On this page you can find all versions of the php package meezaan/microservice-template. 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 microservice-template

CircleCI

Introduction

This is PHP 7 based microservice template that can greatly speed up building of microservices.

Technology Stack

How to use it

This is effectively a starter template. You can make changes in the src and the routes folder and have your microservice up and running in a few minutes (depending on what you're trying to do, of course).

Understanding the Structure

The template uses a variety of composer packages. The list is available in composer.json. Many of these are optional - look in src/Model to see which ones may be used.

The src Folder

This starts with namespace definition. The example has a namespace called Book. Inside our namespace, we have:

  1. Entities - These are Doctrine entities - we're using Doctrine as an ORM here - so you can create and manage your schema with these.
  2. Models - These contain any business logic you need to apply incoming our outgoing data.
  3. Helpers - Any generic classes to help you do stuff can go here - if you're not using any third party composer packages.

The routes folder

This contains your microservice routes. It comes with versioned folders and the file within is self explanatory. We don't have controllers on purpose - they make you think like a monolith. A routes file will likely force you into a microservice mindset.

Create a Project with this template

Run:

Other stuff - the below documentation is not yet complete. Stay tuned.

This template comes packaged with several different tools (via composer). Using all of them is optional. You can choose to use them or remove them as you wish. You can even add your own. Below are some useful commands and links to documentation for the tools used:

See composer.json to add / remove packages as you need them.

Doctrine

Generate Entities (getters and setters)

Generate Proxies

Update

Create

Behat

PHPUnit

PHP Mess Detector

Run the following to see your options and run a report

PHP Code Sinffer

To see issues:

To autofix per PSR-2:

Generate PHP docs

ApiDocJS API Documentation

This requires . To install:

To run:

To Do

Add docs about artifacts produced.


All versions of microservice-template with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
monolog/monolog Version ~1.17
doctrine/dbal Version v2.5.13
doctrine/orm Version v2.5.14
guzzlehttp/guzzle Version ^6.1
slim/slim Version ^3.9
symfony/yaml Version ^3.3
tuupola/slim-jwt-auth Version ^2.2
tuupola/slim-basic-auth Version ^2.2
slim/http-cache Version 0.4.0
meezaan/microservice-helper Version dev-master
davidepastore/slim-validation Version ^0.5.0
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 meezaan/microservice-template contains the following files

Loading the files please wait ....