Skip to main content

Prerequisites

  • PHP: 7.2 or higher.
  • Composer: Dependency manager for PHP.

Step-by-Step Installation

1. Require Apivalk via Composer

Run the following command in your project root:
While Apivalk is flexible, we recommend the following structure for your API:

3. Autoloading

Ensure your composer.json is configured to autoload your classes. For example:
After modifying composer.json, run:

Next Steps

Once installed, proceed to the Configuration guide to set up your API entry point.