Core: how to start it on open shift?

Created on 13 Jun 2016  路  4Comments  路  Source: php-telegram-bot/core

i used this tut for installing on my openshift server but the but not working

whats is php version required and tools
i only setup php 5.4 and mysql

Most helpful comment

@noplanman thank you i will test it

another question : i used this method for my bot

git clone https://github.com/akalongman/php-telegram-bot.git
cd php-telegram-bot/
composer dump-autoload

and question is where i should place the hook.php
in php-telegram-bot folder ?

All 4 comments

Minimum requirements are PHP 5.5.

I found a PHP 7 version for OpenShift here.

Regarding MySQL, it depends which features you would like to use.
Check the readme to learn more.

@noplanman thank you i will test it

another question : i used this method for my bot

git clone https://github.com/akalongman/php-telegram-bot.git
cd php-telegram-bot/
composer dump-autoload

and question is where i should place the hook.php
in php-telegram-bot folder ?

You can put the hook.php wherever you want, you just need to include the autoload.php from your vendor folder.
Preferably it would be outside (and above) the vendor folder.

thank you my problem solved by upgrading php version :+1: @noplanman

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vansanblch picture vansanblch  路  3Comments

marcolino7 picture marcolino7  路  3Comments

esomkin picture esomkin  路  3Comments

NabiKAZ picture NabiKAZ  路  4Comments

irmmr picture irmmr  路  3Comments