Skip to content

Repository files navigation

Gopad: SDK for PHP

General Workflow Join the Matrix chat at https://matrix.to/#/#gopad:matrix.org Codacy Badge PHP Version

This repository provides a client SDK for PHP. This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0-alpha1
  • Package version: 4.1.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

For more information, please visit https://gopad.eu

Installation

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

To install the bindings via Composer, simply add the following to your composer.json file:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/gopad/gopad-php.git"
    }
  ],
  "require": {
    "gopad/gopad-php": "*@dev"
  }
}

After that you just need to run composer install to download it and you can use it as a library.

Manual Installation

Download the files and include the autoload.php file which is part of this library/repository:

<?php
require_once('/path/to/gopad/vendor/autoload.php');

Tests

composer install
vendor/bin/phpunit

Security

If you find a security issue please contact gopad@webhippie.de first.

Generating

We use mise to manage all required tools and their versions. Install it by following the official installation instructions, then run the following commands inside the repository to activate mise and install all tools defined in mise.toml:

mise trust
mise install

Contributing

Generally we are following conventional commits when we apply changes. That way we are able to generate proper changelogs for every release. Please use always pull requests to integrate new functionalities or to fix issues.

For the release process we are following semantic versioning which clearly indicates if a new version just resolves bugs, includes new features or even includes breaking changes.

After installing the tools via mise install as described above set up the pre-commit hooks so they run automatically on every commit:

pre-commit install --hook-type pre-commit --hook-type commit-msg

pre-commit is managed by mise and will be available after mise install.

If you have changed something on the source you should simply commit following the mentioned conventions:

git checkout -b feat/new-feature
git add --all
git commit -m 'feat: added awesome new feature'
git push --set-upstream origin feat/new-feature

After pushing your changes into the Git repository you should create a pull request on GitHub. If the pull request have been merged and everything built fine it will also create automatically a new release at least once a week.

Authors

License

Apache-2.0

Copyright

Copyright (c) 2018 Thomas Boerger <thomas@webhippie.de>

About

PHP SDK for Gopad

Topics

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages