Download the PHP package joebocock/launch-library-php-sdk without Composer

On this page you can find all versions of the php package joebocock/launch-library-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package launch-library-php-sdk

Launch Library PHP API SDK

A simple PHP SDK to work with the Launch Library 2 API.

GitHub Workflow Status GitHub issues GitHub commit activity GitHub code size in bytes


Warning: This package is still in active development and in very early stages.

Table of Contents


Introduction

This PHP Composer package provides a simple SDK to interact with Launch Libraries API for all your space data needs!

This package can be used out-of-box with zero configuration. However, you may provide a configured HTTP client if you wish, given it follows PSR-18.


Usage

This package is not yet complete, but I am actively working on it. I'm slowly working my way through the various endpoints. To get started, install the package with Composer.



General usage is simple and you can be up and running in no time.



The client has multiple configuration options. Firstly, you can provide a JoeBocock\LaunchLibrary\Enum\Url. This enum will determine which endpoint is used when making requests. Secondly a JoeBocock\Enum\Version can be provided and is used to decide on which API version should be hit. Finally, under the hood Guzzle will be used to make the request - but if you have your own PSR-18 compliant HTTP client, you may provide it while constructing the Client class. This is great for when you need to configure the Client beforehand.



The main client is composed of sub-clients. Whenever you want to make a request against a specific resource, it can be achieved by doing the following...



While I'd hope nothing goes wrong during usage, sometimes Launch Library might return a 4XX or even 5XX. In this case, the Client class throws two different exceptions to help discern the problem.

A LaunchLibraryRequestException will occur whenever there was an issue produced by the HTTP Client. Finally, a LaunchLibraryResponseException will happen whenever a response was returned that cannot be properly hydrated into an entity.


Development

As this is just a package, it has no requirement for a web server locally. Development is powered by a very simple Docker container that is used to run all commands.

To get started, first clone the repository. A Makefile is provided for convenience of command handling...



Contributing

As the package is still in development and hasn't reached v1 yet, I haven't written any contribution guidelines. But don't let that stop you! Please feel free to fork the codebase, get a feel for the style and submit a PR.


All versions of launch-library-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
psr/http-message Version ^2.0
psr/http-client Version ^1.0
guzzlehttp/guzzle Version ^7.8
guzzlehttp/psr7 Version ^2.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package joebocock/launch-library-php-sdk contains the following files

Loading the files please wait ....