Download the PHP package gasparteixeira/api-boilerplate without Composer

On this page you can find all versions of the php package gasparteixeira/api-boilerplate. 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 api-boilerplate

API BOILERPLATE Symfony 4.2, MySQL & JWT Authentication

This project is to help people to start a fast API

Requirements

PHP, MySQL, Git, Composer, openssl

Symfony has a build-in web server you do not need Apache or Ngnx to run this project. Thanks Symfony :)

Install with composer

Change (my-project-name) with the name of your project

Check it out

Environment

  1. Open the file .env and configure your database connection (user, password and database_name)

  2. For security reasons, change this password

  3. Basic Auth, change username and password

Generate SSH keys

use the same password you defined in .env, when asked for it

Creating database

execute the command line to create your database

make migrations

lets commit the migration (it will create a table called user)

Load fixtures

add an user (src/DataFixtures/UserFixtures) to make the test

Running

Testing

You can test it using Postman or through the terminal with curl using the username and password you defined in config\services.yml

Response must start like:

PHPUnit

API documentation

Go to http://localhost:8000/api/doc More stuff check out https://symfony.com


All versions of api-boilerplate with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
ext-ctype Version *
ext-iconv Version *
friendsofsymfony/rest-bundle Version ^2.5
jms/serializer-bundle Version ^3.1
lexik/jwt-authentication-bundle Version ^2.6
nelmio/api-doc-bundle Version ^3.4
sensio/framework-extra-bundle Version ^5.2
symfony/asset Version 4.2.*
symfony/console Version 4.2.*
symfony/dotenv Version 4.2.*
symfony/flex Version ^1.1
symfony/framework-bundle Version 4.2.*
symfony/orm-pack Version ^1.0
symfony/routing Version 4.2.*
symfony/security Version 4.2.*
symfony/security-bundle Version 4.2.*
symfony/security-core Version 4.2.*
symfony/security-http Version 4.2.*
symfony/swiftmailer-bundle Version ^3.2
symfony/templating Version 4.2.*
symfony/translation Version 4.2.*
symfony/yaml Version 4.2.*
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 gasparteixeira/api-boilerplate contains the following files

Loading the files please wait ....