Skip to content

Commit

Permalink
documentation, strict types
Browse files Browse the repository at this point in the history
  • Loading branch information
karser committed Jan 21, 2025
1 parent 18e5706 commit 264ac27
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 17 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ KarserRecaptcha3Bundle
reCAPTCHA v3 returns a score for each request without user friction.
The score is based on interactions with your site (1.0 is very likely a good interaction,
0.0 is very likely a bot) and enables you to
take an appropriate action for your site. Register reCAPTCHA v3 keys
[here](https://www.google.com/recaptcha/admin/create).
take an appropriate action for your site.

![image](https://user-images.githubusercontent.com/1675033/58698825-bbca8e00-83a4-11e9-9627-e3a2b1a6c074.png)

Getting reCAPTCHA v3 key and secret
--------------------------------

Register reCAPTCHA v3 keys [here](https://www.google.com/recaptcha/admin/create).
![Image](https://github.com/user-attachments/assets/fa5ca3cd-e87a-485c-aa25-5b4800da5bde)

Installation
------------
Expand Down
3 changes: 2 additions & 1 deletion ReCaptcha/ReCaptcha.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion ReCaptcha/RequestMethod.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion ReCaptcha/RequestMethod/Curl.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion ReCaptcha/RequestMethod/CurlPost.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion ReCaptcha/RequestMethod/Post.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion ReCaptcha/RequestMethod/Socket.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion ReCaptcha/RequestMethod/SocketPost.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion ReCaptcha/RequestParameters.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion ReCaptcha/Response.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion Tests/ReCaptcha/ReCaptchaTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion Tests/ReCaptcha/RequestMethod/CurlPostTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion Tests/ReCaptcha/RequestMethod/PostTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion Tests/ReCaptcha/RequestMethod/SocketPostTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion Tests/ReCaptcha/RequestParametersTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
3 changes: 2 additions & 1 deletion Tests/ReCaptcha/ResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

/**
* This is a PHP library that handles calling reCAPTCHA.
*
Expand Down
12 changes: 12 additions & 0 deletions UPGRADE-0.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
### UPGRADE FROM 0.1.* to 0.2.0

Everything after \ReCaptcha\* namespace was moved into \Karser\Recaptcha3Bundle\ReCaptcha

Before:
```
use ReCaptcha\ReCaptcha;
```
After:
```
use Karser\Recaptcha3Bundle\ReCaptcha\ReCaptcha;
```

0 comments on commit 264ac27

Please sign in to comment.