krydos/PHPNotifier

how i can use this in Cloud Foundry app.

Opened this issue · 6 comments

how i can use this in Cloud Foundry app?

hi @ajitrishabh,
I guess you can just include it in your composer.json and it should work.
Check Cloud Foundry docs about it.

great @krydos Thanks for the quick reply.

if i want to run some code/function at 10 am every day then how i can do this in PHPNotifier?

this library is implemented about 3 years ago and there are no updated since then, but as far as I remember there is no way to schedule periodic jobs. Just no such feature.

can you guide me how i can do this in cloud foundry (CF) app.
any other library which i can use. because there is no way to use cron job in CF.

hey @ajitrishabh unfortunately I can't really guide you toward CF because I never used it.
What I could find it is their Task Mechanism but it's still required to have cron job somewhere else to trigger a task.

As far as I got CF is build all around containers so why can't you use Cron?

Hi Ruslan,
actually i am also new in CF. i found this link in CF Buildpack
https://github.com/cloudfoundry/php-buildpack/issues/17

but i really don't know how i do this. for this i need your expertise.
i do not have access to cron tab ( maybe i don't know how to access cron tab in CF container)