Download the PHP package swipegames/public-api without Composer

On this page you can find all versions of the php package swipegames/public-api. 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 public-api

Swipe Games Public API

API documentation site, OpenAPI specs, and generated client packages for Swipe Games Public API.

Requirements

Quick Start

Generated Packages

Types are generated from the OpenAPI specs and published as packages:

Package Registry Install
@swipegames/public-api npm npm install @swipegames/public-api
swipegames/public-api Packagist composer require swipegames/public-api
Go (services) GitHub go get github.com/swipegames/public-api
Go (types only) GitHub go get github.com/swipegames/public-api/api/v1.0/core/types

Commands

Command Description
make up Start docs site locally
make gen-api Regenerate all code (Go + TypeScript + PHP)
make gen-docs Regenerate API documentation
make bump-version v=x.y.z Bump version everywhere and regenerate
make build-node Build the Node/TypeScript package

Versioning

We use semver. See CLAUDE.md for the full versioning workflow.

To bump the version:

This updates all version locations (API specs, docusaurus config) and regenerates all code and docs.

CI/CD

Customizations

This documentation includes custom components (swizzled from docusaurus-theme-openapi-docs) to enforce canonical JSON format in all code examples and request panels.

Swizzled Components

When upgrading docusaurus-theme-openapi-docs, these components may need to be reviewed and updated:

1. src/theme/ApiExplorer/CodeSnippets/index.tsx

Purpose: Post-processes code snippets to ensure canonical JSON format

Modifications:

Dependencies:

2. src/theme/ApiExplorer/Body/index.tsx

Purpose: Displays compact canonical JSON in the interactive request panel

Modifications:

3. src/theme/ApiExplorer/index.js (Wrapper)

Purpose: Pre-sorts JSON keys before code generation

Modifications:

Why Canonical JSON?

The Swipe Games API requires canonical JSON format for signature generation:

See /docs/authn.md for detailed authentication documentation.

Maintenance Notes

When updating docusaurus-theme-openapi-docs:

  1. Check if swizzled components have breaking changes
  2. Review modifications in the components listed above
  3. Test code snippet generation for all languages
  4. Verify request panel displays compact JSON
  5. Run yarn build to ensure no compilation errors

All versions of public-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 swipegames/public-api contains the following files

Loading the files please wait ...