Skip to content

arie-piscator/git-x

Repository files navigation

Git Project API

Description

This is a demo repository, belonging to a blog post I wrote, with an example of how binding interfaces to implementations in the service container can be used in Laravel when interacting with external APIs. This project interacts with the project API from both GitHub and GitLab.

Features

  • Binding interfaces to implementations in the AppServiceProvider.
  • Interaction with the project API from GitHub and GitLab.
  • Conversion of project data by using DataTransferObjects.

Usage

The git/project route shows the json result of projects from GitHub by default or GitLab. You can swap to the GitLab implementation in the AppServiceProvider.

Testing

You can run the tests by executing:

vendor/bin/phpunit

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •