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.
Download gasparteixeira/api-boilerplate
More information about gasparteixeira/api-boilerplate
Files in gasparteixeira/api-boilerplate
Package api-boilerplate
Short Description Boilerplate to create a REST API with Symfony 4.2
License MIT
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
-
Open the file .env and configure your database connection (user, password and database_name)
-
For security reasons, change this password
- 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
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.*