Closed oktaykalfa closed 1 year ago
If you have installed the library with composer, did you include composer's autoload file?
Like this:
include 'vendor/autoload.php';
If you have added use Pushok\AuthProvider;
to your PHP file, then you have to instantiate the token like this:
$authProvider = AuthProvider\Token::create($options); // bo backslash in front of AuthProvider
Otherwise PHP will search for the AuthProvider in the global namespace instead of the Pushok namespace.
I had this issue on my AWS instance, please install the extensions, gmp
and bcmath
, then restart your server.
Hello Developer,
// Be aware of thing that Token will stale after one hour, so you should generate it again. // Can be useful when trying to send pushes during long-running tasks $authProvider = \AuthProvider\Token::create($options);
this line is not working even if i added "use Pushok\AuthProvider;"
I see no replacement. What can i do for this? Thanks for your helps.
Best Regards.