0
I’m using the library https://github.com/nfe/client-php from Nfe.io to issue tax note automatically when the return of Paypal and Paypal is "Paid".
Try using the call in various ways, according to the documentation:
With Composer:
require_once('vendor/autoload.php');
Without Composer, downloading the library:
require_once ('client-php/lib/init.php');
And variations of them as:
require( dirname(__FILE__) . '/client-php/lib/init.php');
But always returns me the error of "Unexpected T_STATIC", as shown below:
<b>Parse error</b>: syntax error, unexpected T_STATIC in <b>/home/storage/a/f7/10/vovocooks/public_html/temp/client-php/lib/NFe/APIResource.php</b> on line <b>79</b><br />
Which is already in the library. I started using yesterday, but today (Saturday) no one should work in the Nfe.io company and I need this help.
What is the content of this line of code? And what version of PHP is running?
– Woss
@Andersoncarloswoss the PHP Version: 5.2 and the line is require_once ('client-php/lib/init.php');
– Ramos
The only requirement of the library, see repository, is version 5.4 or higher of PHP. Update your PHP, then.
– Woss
Yeah, now I’ve updated PHP and the error is in the $Curl = curl_init($url); returning Fatal error</b>: Call to Undefined Function curl_init() in
– Ramos
Ramos, you need to configure your PHP.ini to release the CURL library in your PHP, either: https://stackoverflow.com/a/6382581/6510304
– Don't Panic
Do you have the Curl extension installed? It is part of the library dependencies. You even read the archive README at least?
– Woss