Skip to content

Commit d5f73d3

Browse files
Bahaa OdehBahaa Odeh
authored andcommitted
git sstart
0 parents  commit d5f73d3

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

AutoloadExample.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Baha2Odeh\RecaptchaV3;
4+
5+
/**
6+
* This is just an example.
7+
*/
8+
class AutoloadExample extends \yii\base\Widget
9+
{
10+
public function run()
11+
{
12+
return "Hello!";
13+
}
14+
}

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Yii2 reCAPTCHA v3
2+
=================
3+
Yii2 reCAPTCHA v3
4+
5+
Installation
6+
------------
7+
8+
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
9+
10+
Either run
11+
12+
```
13+
php composer.phar require --prefer-dist baha2odeh/yii2-recaptcha-v3 "*"
14+
```
15+
16+
or add
17+
18+
```
19+
"baha2odeh/yii2-recaptcha-v3": "*"
20+
```
21+
22+
to the require section of your `composer.json` file.
23+
24+
25+
Usage
26+
-----
27+
28+
Once the extension is installed, simply use it in your code by :
29+
30+
```php
31+
<?= \Baha2Odeh\RecaptchaV3\AutoloadExample::widget(); ?>```

composer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "baha2odeh/yii2-recaptcha-v3",
3+
"description": "Yii2 reCAPTCHA v3",
4+
"type": "yii2-extension",
5+
"keywords": ["yii2","extension","recaptcha v3","captcha"],
6+
"license": "Apache-2.0",
7+
"authors": [
8+
{
9+
"name": "Bahaa Odeh",
10+
"email": "bw4@hotmail.it"
11+
}
12+
],
13+
"require": {
14+
"yiisoft/yii2": "~2.0.0"
15+
},
16+
"autoload": {
17+
"psr-4": {
18+
"Baha2Odeh\\RecaptchaV3\\": ""
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)