Skip to content

Commit 5f7fe09

Browse files
committed
Fix example includes
1 parent caea152 commit 5f7fe09

3 files changed

Lines changed: 11 additions & 20 deletions

File tree

examples/recaptcha-request-curl.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?php
22

3-
use ReCaptcha\ReCaptcha;
4-
use ReCaptcha\RequestMethod\CurlPost;
5-
63
/**
74
* BSD 3-Clause License.
85
*
@@ -36,12 +33,13 @@
3633
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3734
*/
3835

39-
require __DIR__.'/appengine-https.php';
40-
4136
// Initiate the autoloader. The file should be generated by Composer.
4237
// You will provide your own autoloader or require the files directly if you did
4338
// not install via Composer.
44-
require_once __DIR__.'/../vendor/autoload.php';
39+
require_once __DIR__.'/../src/autoload.php';
40+
41+
use ReCaptcha\ReCaptcha;
42+
use ReCaptcha\RequestMethod\CurlPost;
4543

4644
// Register API keys at https://www.google.com/recaptcha/admin
4745
$siteKey = '';

examples/recaptcha-request-post.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
<?php
2-
3-
use ReCaptcha\ReCaptcha;
4-
use ReCaptcha\RequestMethod\Post;
5-
62
/**
73
* BSD 3-Clause License.
84
*
@@ -36,12 +32,13 @@
3632
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3733
*/
3834

39-
require __DIR__.'/appengine-https.php';
40-
4135
// Initiate the autoloader. The file should be generated by Composer.
4236
// You will provide your own autoloader or require the files directly if you did
4337
// not install via Composer.
44-
require_once __DIR__.'/../vendor/autoload.php';
38+
require_once __DIR__.'/../src/autoload.php';
39+
40+
use ReCaptcha\ReCaptcha;
41+
use ReCaptcha\RequestMethod\Post;
4542

4643
// Register API keys at https://www.google.com/recaptcha/admin
4744
$siteKey = '';

examples/recaptcha-request-socket.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
<?php
2-
3-
use ReCaptcha\ReCaptcha;
4-
use ReCaptcha\RequestMethod\SocketPost;
5-
62
/**
73
* BSD 3-Clause License.
84
*
@@ -36,12 +32,12 @@
3632
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3733
*/
3834

39-
require __DIR__.'/appengine-https.php';
40-
4135
// Initiate the autoloader. The file should be generated by Composer.
4236
// You will provide your own autoloader or require the files directly if you did
4337
// not install via Composer.
44-
require_once __DIR__.'/../vendor/autoload.php';
38+
require_once __DIR__.'/../src/autoload.php';
39+
use ReCaptcha\ReCaptcha;
40+
use ReCaptcha\RequestMethod\SocketPost;
4541

4642
// Register API keys at https://www.google.com/recaptcha/admin
4743
$siteKey = '';

0 commit comments

Comments
 (0)