unlike normal variable files, how do I add a phpfile that depends on a library?
I'm not quite sure what you mean...If you initialize a PHP function (https://appwrite.io/docs/functions#gettingStarted) you can see how it uses the Appwrite PHP package
I meant what if the project has dependencies? @Steven
Did you initialize a function using the CLI?
Using the UI on the dashboard.
How am I to package the file for dart or php? Using manual deployment, I only saw an example for JavaScript
Besides will it be safe to store API and authentication that the cloud function uses to third party API inside the dart project as class? @Steven
Any suggestion @Binyamin ?
It's best to create and manage the function life-cycle using Appwrite CLI tool. It will be much easier in the long run.
You can read this https://discord.com/channels/564160730845151244/1095282924355588168/1095382752242716813
This should be stored in a function variable. Please make sure to read and follow the function docs: https://appwrite.io/docs/functions
How to add function dependencies?
I appreciate you all @Binyamin @Steven
@dammy checking in to see if your issue is resolved? š
??? @safwan
is your issue fixed, or do you need more help?
Not yet @safwan
Recommended threads
- Hi, I'm getting this error while deployi...
ā Error ⢠search (6937cb70002c2e9c1a97) ⢠Fai ā Error: Deployment of search has failed. Check at https://cloud.appwrite.io/console/project-693...
- Timed out waiting for runtime. Error Cod...
After setting up my ML project that uses deepface and tensorflow in appwrite functions I get the `Timed out waiting for runtime. Error Code: 400. ` error. I am...
- Bug: Cloud Function On Schedule Didn't R...
Heya I have a cloud function with this cron `0 17 * * *` to run at 9AM PT every day. I have not touched this since I set it up, and it has been working fine s...