Skip to content

Commit 148f79f

Browse files
committed
WIP
1 parent ed055ce commit 148f79f

7 files changed

+64
-34
lines changed

.gitattributes

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@
66
/.gitattributes export-ignore
77
/.gitignore export-ignore
88
/phpunit.xml.dist export-ignore
9+
/art export-ignore
10+
/docs export-ignore
911
/tests export-ignore
1012
/.editorconfig export-ignore
11-
/.php_cs.dist export-ignore
13+
/.php_cs.dist.php export-ignore
1214
/psalm.xml export-ignore
1315
/psalm.xml.dist export-ignore
1416
/testbench.yaml export-ignore
17+
/UPGRADING.md export-ignore
18+
/phpstan.neon.dist export-ignore
19+
/phpstan-baseline.neon export-ignore

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
.idea
2-
.php-cs-fixer.php
3-
.php-cs-fixer.cache
42
.phpunit.result.cache
5-
build
3+
.phpunit.cache
64
composer.lock
75
coverage
8-
docs
96
phpunit.xml
10-
psalm.xml
7+
phpstan.neon
118
testbench.yaml
129
vendor
1310
node_modules
11+
.phpactor.json

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<img src="https://banners.beyondco.de/Laravel%20Twilio%20Verify.png?theme=light&packageManager=composer+require&packageName=codebar-ag%2Flaravel-twilio-verify&pattern=circuitBoard&style=style_2&description=An+opinionated+way+to+integrate+Twilio+Verify+with+Laravel&md=1&showWatermark=0&fontSize=150px&images=badge-check&widths=500&heights=500">
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/codebar-ag/laravel-twilio-verify.svg?style=flat-square)](https://packagist.org/packages/codebar-ag/laravel-twilio-verify)
4-
[![Total Downloads](https://img.shields.io/packagist/dt/codebar-ag/laravel-twilio-verify.svg?style=flat-square)](https://packagist.org/packages/codebar-ag/laravel-twilio-verify)
5-
[![run-tests](https://github.com/codebar-ag/laravel-twilio-verify/actions/workflows/run-tests.yml/badge.svg)](https://github.com/codebar-ag/laravel-twilio-verify/actions/workflows/run-tests.yml)
6-
[![Psalm](https://github.com/codebar-ag/laravel-twilio-verify/actions/workflows/psalm.yml/badge.svg)](https://github.com/codebar-ag/laravel-twilio-verify/actions/workflows/psalm.yml)
7-
[![Check & fix styling](https://github.com/codebar-ag/laravel-twilio-verify/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/codebar-ag/laravel-twilio-verify/actions/workflows/php-cs-fixer.yml)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/codebar-ag/laravel-twillio-verify.svg?style=flat-square)](https://packagist.org/packages/codebar-ag/laravel-twillio-verify)
4+
[![GitHub-Tests](https://github.com/codebar-ag/laravel-twillio-verify/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-twillio-verify/actions/workflows/run-tests.yml)
5+
[![GitHub Code Style](https://github.com/codebar-ag/laravel-twillio-verify/actions/workflows/fix-php-code-style-issues.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-twillio-verify/actions/workflows/fix-php-code-style-issues.yml)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/codebar-ag/laravel-twillio-verify.svg?style=flat-square)](https://packagist.org/packages/codebar-ag/laravel-twillio-verify)
87

98
This package was developed to give you a quick start to communicate with the
109
Twilio Verify service.
@@ -19,6 +18,12 @@ Push. Add verification to any step of your user‘s journey with a single API.
1918

2019
## 🛠 Requirements
2120

21+
| Package | PHP | Laravel |
22+
|:-------:|:-----------:|:-------:|
23+
| v12.0.0 | ^8.2 - ^8.4 | 12.x |
24+
| v11.0.0 | ^8.2 - ^8.3 | 11.x |
25+
| | ^8.0 | ... |
26+
2227
- PHP: `^8.0`
2328
- Laravel: `^8.12`
2429
- Twilio Account

build/report.junit.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites>
3+
<testsuite name="/Users/rhyslees/Code/Packages/codebar-ag/laravel-twilio-verify/phpunit.xml" tests="6" assertions="5" errors="0" failures="0" skipped="2" time="0.072368">
4+
<testsuite name="CodebarAg Test Suite" tests="6" assertions="5" errors="0" failures="0" skipped="2" time="0.072368">
5+
<testsuite name="CodebarAg\TwilioVerify\Tests\Feature\TwilioVerifyTest" file="Twilio Verify (CodebarAg\TwilioVerify\Tests\Feature\TwilioVerify)" tests="2" assertions="0" errors="0" failures="0" skipped="2" time="0.059304">
6+
<testcase name="It does start a verification with sms" file="Twilio Verify (CodebarAg\TwilioVerify\Tests\Feature\TwilioVerify)::It does start a verification with sms" class="CodebarAg\TwilioVerify\Tests\Feature\TwilioVerifyTest" classname="CodebarAg.TwilioVerify.Tests.Feature.TwilioVerifyTest" assertions="0" time="0.057009">
7+
<skipped/>
8+
</testcase>
9+
<testcase name="It does check a verification with sms" file="Twilio Verify (CodebarAg\TwilioVerify\Tests\Feature\TwilioVerify)::It does check a verification with sms" class="CodebarAg\TwilioVerify\Tests\Feature\TwilioVerifyTest" classname="CodebarAg.TwilioVerify.Tests.Feature.TwilioVerifyTest" assertions="0" time="0.002295">
10+
<skipped/>
11+
</testcase>
12+
</testsuite>
13+
<testsuite name="CodebarAg\TwilioVerify\Tests\Feature\DTOTest" file="DTO (CodebarAg\TwilioVerify\Tests\Feature\DTO)" tests="4" assertions="5" errors="0" failures="0" skipped="0" time="0.013063">
14+
<testcase name="It does create a fake send code attempt" file="DTO (CodebarAg\TwilioVerify\Tests\Feature\DTO)::It does create a fake send code attempt" class="CodebarAg\TwilioVerify\Tests\Feature\DTOTest" classname="CodebarAg.TwilioVerify.Tests.Feature.DTOTest" assertions="1" time="0.006595"/>
15+
<testcase name="It does create a fake verification check" file="DTO (CodebarAg\TwilioVerify\Tests\Feature\DTO)::It does create a fake verification check" class="CodebarAg\TwilioVerify\Tests\Feature\DTOTest" classname="CodebarAg.TwilioVerify.Tests.Feature.DTOTest" assertions="1" time="0.002127"/>
16+
<testcase name="It does create a fake lookup" file="DTO (CodebarAg\TwilioVerify\Tests\Feature\DTO)::It does create a fake lookup" class="CodebarAg\TwilioVerify\Tests\Feature\DTOTest" classname="CodebarAg.TwilioVerify.Tests.Feature.DTOTest" assertions="2" time="0.002104"/>
17+
<testcase name="It does create a fake verification start" file="DTO (CodebarAg\TwilioVerify\Tests\Feature\DTO)::It does create a fake verification start" class="CodebarAg\TwilioVerify\Tests\Feature\DTOTest" classname="CodebarAg.TwilioVerify.Tests.Feature.DTOTest" assertions="1" time="0.002237"/>
18+
</testsuite>
19+
</testsuite>
20+
</testsuite>
21+
</testsuites>

phpstan-baseline.neon

Whitespace-only changes.

phpstan.neon.dist

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
4+
parameters:
5+
level: 5
6+
paths:
7+
- src
8+
- config
9+
tmpDir: build/phpstan
10+
checkOctaneCompatibility: true
11+
checkModelProperties: true
12+
noEnvCallsOutsideOfConfig: false

phpunit.xml.dist

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
bootstrap="vendor/autoload.php"
8-
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
12-
processIsolation="false"
13-
stopOnFailure="false"
14-
executionOrder="random"
15-
failOnWarning="true"
16-
failOnRisky="true"
17-
failOnEmptyTestSuite="true"
18-
beStrictAboutOutputDuringTests="true"
19-
verbose="true"
20-
>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" backupGlobals="false"
4+
bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false"
5+
executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true"
6+
beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
217
<testsuites>
22-
<testsuite name="CodebarAg Test Suite">
8+
<testsuite name="codebar Solutions AG Test Suite">
239
<directory>tests</directory>
2410
</testsuite>
2511
</testsuites>
2612
<coverage>
27-
<include>
28-
<directory suffix=".php">./src</directory>
29-
</include>
3013
<report>
3114
<html outputDirectory="build/coverage"/>
3215
<text outputFile="build/coverage.txt"/>
@@ -37,9 +20,15 @@
3720
<junit outputFile="build/report.junit.xml"/>
3821
</logging>
3922
<php>
23+
<env name="APP_KEY" value="base64:F+mHMDBbavrsp/I3WYA5lDSwDJJI/0wQG4eM3csq/lo="/>
4024
<env name="TWILIO_URL" value="https://verify.twilio.com/v2/Services"/>
4125
<env name="TWILIO_ACCOUNT_SID" value="ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"/>
4226
<env name="TWILIO_AUTH_TOKEN" value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"/>
4327
<env name="TWILIO_SERVICE_SID" value="VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"/>
4428
</php>
29+
<source>
30+
<include>
31+
<directory suffix=".php">./src</directory>
32+
</include>
33+
</source>
4534
</phpunit>

0 commit comments

Comments
 (0)