Download the PHP package appwrite/sdk-generator without Composer

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

⚙️ Appwrite SDK Generator

Discord Twig Linting X Account appwrite.io

Appwrite SDK generator is a PHP library for auto-generating SDK libraries for multiple languages and platforms.

The SDK Generator uses predefined language settings as Twig templates to generate codebases based on different API specs.

Currently, the only spec supported is Swagger 2.0, but we intend to add support for more specifications in the near future. This generator is still lacking support for any definition/model specs.

Getting Started

Install using composer:

CLI

Docker (UNIX)

Docker (Windows)

Create language and SDK instances and generate code to target directory.

For generated artifacts that do not need an API specification, use StaticSpec:

Linting Twig Templates

This project uses djLint to lint Twig template files for syntax and common issues.

Note: Formatting is disabled as it breaks code generation syntax. Only linting is used.

Available command:

Requires uv to be installed. Configuration is in pyproject.toml. The linter runs automatically on pull requests via GitHub Actions.

Supported Specs

Generated SDKs and Artifacts

The primary generation targets are defined in example.php. Run it without arguments to generate every target with the default console platform spec, or pass a target and optional platform to generate one SDK:

<platform> can be console, client, or server. If omitted, it defaults to console.

Examples:

Client SDKs

Target Argument Supported Versions Coding Standards Package Manager Output
Web web ES5+; Node.js >=18 for builds NPM Coding Style NPM examples/web/
Flutter flutter Dart >=2.17 <4; Flutter stable Effective Dart pub examples/flutter/
Apple apple iOS 15+, macOS 11+, watchOS 7+, tvOS 13+ Swift Style Guide Swift Package Manager examples/apple/
Android android Android 5.0+; Java 17 in CI Android style guide Gradle, Maven examples/android/
React Native react-native React Native >=0.76.7 <1.0.0; Node.js >=18 NPM Coding Style NPM examples/react-native/

Server SDKs

Target Argument Supported Versions Coding Standards Package Manager Output
Node.js node Node.js 20 in CI NPM Coding Style NPM examples/node/
PHP php PHP >=8.2 PHP FIG Composer examples/php/
Python python Python >=3.9 PEP8 pip examples/python/
Ruby ruby Ruby 3.1 in CI Ruby Style Guide RubyGems, Bundler examples/ruby/
Dart dart Dart >=2.17 <4 Effective Dart pub examples/dart/
Go go Go 1.22.5 Effective Go Go modules examples/go/
Swift swift Swift 5.1+; Swift 5.9.2 in CI Swift Style Guide Swift Package Manager examples/swift/
.NET dotnet .NET Standard 2.0; .NET Framework 4.6.2 C# Coding Conventions NuGet examples/dotnet/
Kotlin kotlin JVM 1.8 target; Java 17 in CI Kotlin style guide Gradle, Maven examples/kotlin/
Rust rust Rust >=1.83 Rust API Guidelines Cargo examples/rust/

Tooling and Documentation

Target Argument Supported Versions Coding Standards Package Manager Output
CLI cli Node.js 20 and Bun 1.3.11 in CI NPM Coding Style NPM, Bun, native binaries examples/cli/
REST examples rest N/A Markdown N/A examples/REST/
GraphQL graphql N/A GraphQL N/A examples/graphql/
Markdown docs markdown N/A Markdown N/A examples/markdown/
Agent Skills agent-skills N/A Markdown N/A examples/agent-skills/
Cursor Plugin cursor-plugin N/A Markdown N/A examples/cursor-plugin/
Claude Plugin claude-plugin N/A Markdown N/A examples/claude-plugin/

Contributing

All code contributions, including those by people with commit access, must go through a pull request and be approved by a core developer before being merged. This is to ensure proper review of all the code.

We truly ❤️ pull requests! If you wish to help, you can learn more about how you can contribute to this project in the contribution guide.

Copyright and license

The MIT License (MIT) http://www.opensource.org/licenses/mit-license.php


All versions of sdk-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-curl Version *
ext-mbstring Version *
ext-json Version *
twig/twig Version 3.27.*
matthiasmullie/minify Version 1.3.*
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 appwrite/sdk-generator contains the following files

Loading the files please wait ...