Appwrite SDK Init for PHP



    Khalid Khan

    Appwrite companion cookbook

    Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key from project's API keys section.

    This code is for PHP

    Shortcut: appwrite.php.init

    $client = new Client();
      ->setEndpoint('API_Endpoint') // Your API Endpoint
      ->setProject('Project_ID') // Your project ID
      ->setKey('apikey') // Your secret API key
      ->setSelfSigned() // Use only on dev mode with a self-signed SSL cert
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.