Skip to content
Mohamed Elkomy edited this page Sep 19, 2023 · 4 revisions

Introduction

Simple integration with GoalServe API for Laravel.

Laravel media removable

Setup

Installation

To install this package through composer run the following command in the terminal

composer require codebuglab/laravel-goalserve

Publish

You have to publish config file with this artisan command:

php artisan vendor:publish --provider="CodeBugLab\GoalServe\GoalServeServiceProvider"
  • File goalserve.php will be publish in config folder after that.
  • Then you have to put your goalserve api key in your env file like this GOALSERVE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
  • The default language of api response is en,If the returned data from the API should be in another language, set the GOALSERVE_API_LANGUAGE key in your env, eg. like this: GOALSERVE_API_LANGUAGE=ar.

Instructions

  • You can use goalserve api and get information your want, first take a quick look at official api description page.
  • You should contact them to get api documentation or a free trial, Click Here.
  • For all next API requests you have to use GoalServe facade
use CodeBugLab\GoalServe\Facades\GoalServe;

Clone this wiki locally