Skip to content

Commit 4d7d90e

Browse files
committed
remove config file and add readme
1 parent 76097e2 commit 4d7d90e

4 files changed

Lines changed: 13 additions & 31 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ public function initialize() {
9191
}
9292
```
9393

94-
### 4. Add the following in your controller.
95-
9694
```php
9795
public function contact() {
9896
if ($this->request->is('post')) {
@@ -113,7 +111,7 @@ public function contact() {
113111
}
114112
```
115113

116-
### 5. Finally add `<?= $this->Recaptcha->display() ?>` in your view template inside the form.
114+
### 4. Finally add `<?= $this->Recaptcha->display() ?>` in your view template inside the form.
117115

118116
**No need** to add the helper: it will be added with the component.
119117

@@ -161,8 +159,12 @@ See another example of contact with no form in
161159

162160
## Tests ##
163161

164-
To test the plugin, clone it and run `composer install`. Then run
165-
`./vendor/bin/phpunit` and `./vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests --ignore=vendor`
162+
To test the plugin, clone it and run `composer install`. Then run:
163+
164+
```bash
165+
./vendor/bin/phpunit
166+
./vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests --ignore=vendor
167+
```
166168

167169
## Support & Contribution ##
168170

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"recaptcha",
1010
"captcha"
1111
],
12-
"homepage": "https://github.com/cake17/cakephp-recaptcha",
12+
"homepage": "https://github.com/cakephp-fr/recaptcha",
1313
"license": "MIT",
1414
"authors": [
1515
{
@@ -24,7 +24,7 @@
2424
},
2525
"require": {
2626
"php": ">=5.4",
27-
"cakephp/cakephp": "~3.0"
27+
"cakephp/cakephp": "~3.1"
2828
},
2929
"require-dev": {
3030
"phpunit/phpunit": "*",

config/recaptcha.default.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

config/routes.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
/**
33
* Routes for Recaptcha Plugin
44
*
5+
* This file is only used to see live examples
6+
* Do not use it in production, meaning remove 'routes' => true when plugin is
7+
* loaded
8+
*
59
* @author cake17
610
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
711
* @link http://blog.cake-websites.com/

0 commit comments

Comments
 (0)