Download the PHP package lux1177/api-starter-kit without Composer

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

Api Starter Kit

Starter kit for API with Symfony, Doctrine, Maker Bundle, Migrations Bundle, VichUploader-bundle, Api-Platform and JWT-auth.

Kit has also already created User and MediaObject entities with all crud routes

Kit has 3 docker containers: php, nginx and mysql

Installation

Download the project

Go to the project directory

Run docker containers

Install composer scripts:

To install project run command:

Done! You can open http://localhost:8505/api via browser. By the way, you can change this port by changing variable in .env file.

Docker

For enter to php container run

For enter to mysql container run

For enter to nginx container run

You can change containers prefix by changing variable in .env file.

Also, you can change public ports of nginx and mysql by changing and

Database allows connections only from localhost. Because of this when you use the project on production and want to connect to database from your computer you should connect via ssh bridge.

Cron

You can use docker/php/cron-file for cron jobs. After you must re-build php container by running command:

Swagger

You can change project name and description on swagger by editing file config/packages/api_platform.yaml

Git Hook

If you don't use any deploying system you can do

In this way git always executes command . You can change this command in the file src/Command/AskDeployCommand.php. This command will install requirements via composer, clear caches, change owner of ./var and ./public/media folders to www-data, will run migrations.

JWT keys

For use Json Web Token system you must create private and public keys. They are have already created when you install project. You can re-create them with:


All versions of api-starter-kit with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-ctype Version *
ext-iconv Version *
api-platform/core Version ^3.3
doctrine/dbal Version ^3
doctrine/doctrine-bundle Version ^2.12
doctrine/doctrine-migrations-bundle Version ^3.3
doctrine/orm Version ^3.2
lexik/jwt-authentication-bundle Version ^3.1
nelmio/cors-bundle Version ^2.5
phpdocumentor/reflection-docblock Version ^5.4
phpstan/phpdoc-parser Version ^1.29
symfony/asset Version 7.1.*
symfony/console Version 7.1.*
symfony/dotenv Version 7.1.*
symfony/expression-language Version 7.1.*
symfony/flex Version ^2
symfony/framework-bundle Version 7.1.*
symfony/property-access Version 7.1.*
symfony/property-info Version 7.1.*
symfony/runtime Version 7.1.*
symfony/security-bundle Version 7.1.*
symfony/serializer Version 7.1.*
symfony/twig-bundle Version 7.1.*
symfony/validator Version 7.1.*
symfony/yaml Version 7.1.*
vich/uploader-bundle Version ^2.4
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 lux1177/api-starter-kit contains the following files

Loading the files please wait ....