Skip to content
/ api-platform Public template

API Platform Template is a versatile Git repository designed to accelerate the development of modern web APIs

License

Notifications You must be signed in to change notification settings

adnanjaw/api-platform

Repository files navigation

API-Platform Template

API-Platform Logo

Overview

API-Platform Template is a project template designed to streamline the development of REST APIs using API Platform. This template includes various tools and dependencies to help you create robust APIs efficiently.

Installation

Before you begin, make sure you have the following prerequisites:

Follow these steps to set up your development environment:

  1. Clone this Repository:

    git clone https://github.com/adnanjaw/api-platform.git
    cd api-platform
  2. Start Docker Containers and Initialize the Application:

    task up

    This command will:

    • Start Docker containers.
    • Install application dependencies using Composer.
    • Run database migrations.
  3. Initialize GrumPHP:

    task grum:init

    This command will initialize GrumPHP, which runs code quality checks on every commit.

Development Tools

This template includes a Taskfile that simplifies common development tasks. You can run these tasks using the task command:

  • Check Code Style:

    task phpcs
  • Fix Code Style Issues:

    task phpcs:fix
  • Lint Twig Templates:

    task twigcs
  • Fix Twig Template Issues:

    task twigcs:fix
  • Run PHPStan for Static Analysis:

    task phpstan
  • Update PHPStan Baseline:

    task phpstan:baseline
  • Run PHPUnit Tests:

    task phpunit
  • Generate PHPUnit Configuration:

    task phpunit:config

Usage

This template provides a starting point for your API development. Customize it to suit your specific project requirements. You can create API resources and configure endpoints using API Platform documentation.

Contributing

If you'd like to contribute to this project, please follow the standard GitHub fork-and-pull-request workflow.

License

This template is open-source and available under the MIT License.

Special Thanks

We would like to express our gratitude to the following individuals for their invaluable contributions, support:

About

API Platform Template is a versatile Git repository designed to accelerate the development of modern web APIs

Topics

Resources

License

Stars

Watchers

Forks