Download the PHP package juststeveking/php-sdk without Composer

On this page you can find all versions of the php package juststeveking/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 php-sdk

PHP SDK

Latest Version PHP Version tests Total Downloads

A framework for building SDKs in PHP.

Installation

Purpose

The purpose of this package is to provide a consistent and interoperable way to build PHP SDKs to work with 3rd party APis.

Usage

To get started with this library, you need to start by extending the Client class. Let's walk through building an SDK.

Create your SDK class

Once this is in place, you can start adding your resources to the class. Let's add a projects method for a projects resource.

We return a new instance of our resource classes, passing through your SDK as a client. This is so that each resource is able to talk through the client to send requests.

Now, let's look at how to structure a resource.

To save time, there are a collection of traits that you can use on your resources.

Let's look at an example of a full resource class.

We start by creating a request, and then try to get a response by sending it through the client.

Once we have a response, we create a Collection thanks to a package by Ben Ramsey. We pass through the type of each item we expect it to be, then the data as an array. To create the data we map over the response content and statically create a new Data Object.

This allows us to keep our code clean, concise, and testable.

Testing

To run the test:

Static analysis

To run the static analysis checks:

Code Style

To run the code style fixer:

Refactoring

To run the rector code refactoring:

Special Thanks

Without the following packages and people, this framework would have been a lot harder to build.

Credits

LICENSE

The MIT License (MIT). Please see License File for more information.


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
ext-fileinfo Version *
crell/serde Version ^1.0.1
juststeveking/sdk-tools Version ^0.0.5
league/object-mapper Version dev-main
nyholm/psr7 Version ^1.8.1
php-http/client-common Version ^2.7.1
php-http/discovery Version ^1.19.2
psr/http-client Version ^1.0.3
psr/http-client-implementation Version *
psr/http-factory-implementation Version *
psr/http-message Version ^2.0
ramsey/collection Version ^2.0
symfony/http-client Version ^7.0
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 juststeveking/php-sdk contains the following files

Loading the files please wait ....