Skip to content

Appwrite configuration for Cloud Function runtimes settings 🌩

License

Notifications You must be signed in to change notification settings

appwrite/runtimes

This branch is 18 commits behind main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a021a2b · Jan 7, 2025
Apr 9, 2024
Jan 7, 2025
Apr 9, 2024
Apr 21, 2021
Jun 28, 2022
Jul 22, 2022
Apr 20, 2021
Jun 29, 2022
Oct 9, 2024
Nov 25, 2024
Apr 20, 2021
Nov 25, 2024
Apr 20, 2021

Repository files navigation

Appwrite Runtimes

Discord Total Downloads Build Status Twitter Account

Appwrite repository for Cloud Function runtimes that contains the configurations and tests for all of the Appwrite runtime environments. This library is maintained by the Appwrite team.

Getting Started

Install using composer:

composer require appwrite/php-runtimes
<?php

require_once '../vendor/autoload.php';

use Appwrite\Runtimes\Runtimes;

$runtimes = new Runtime();

// returns all supported cloud function runtimes
Runtimes::getAll();

Adding a new Runtime

After the Docker image is created, this must be added to the main class of this library.

References to this must be added to the constructor of src/Runtimes/Runtimes.php.

Example:

$dotnet = new Runtime('dotnet', '.NET');
$dotnet->addVersion('5.0', 'mcr.microsoft.com/dotnet/runtime:5.0-alpine', 'appwrite/env-dotnet-5.0:1.0.0', [System::X86, System::ARM]);
$runtimes[] = $dotnet;

Contributing

All code contributions - including those of people having commit access - must go through a pull request and 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.

Authors

Torsten Dittmann

Copyright and license

BSD 3-Clause License https://opensource.org/licenses/BSD-3-Clause