Samples

We provide PHP sample implementations showing how to integrate our payment gateway into custom built websites.

The following implementations are provided:

  • vanilla-app: a simple stand-alone PHP implementation
  • laravel-app: a basic Laravel implementation

vanilla-app

To run the stand-alone PHP implementation, clone the repository, install the dependencies, and run the built-in PHP server as follows:

git clone https://github.com/YocoOpen/yoco-web-sdk-sample-php.git
cd yoco-web-sdk-sample-php/vanilla-app
composer install
php -S localhost:8000

laravel-app

To run the Laravel implementation, clone the repository, install the dependencies, setup the environment, and use artisan to run the internal PHP server:

git clone https://github.com/YocoOpen/yoco-web-sdk-sample-php.git
cd yoco-web-sdk-sample-php/laravel-app
composer install
cp .env.example .env
php artisan key:generate
php artisan serve

Further documentation is available from the project's Github page.