Skip to content

Commit

Permalink
Version 3.0 wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersai committed Dec 20, 2023
1 parent baea38f commit ac7088d
Show file tree
Hide file tree
Showing 96 changed files with 2,906 additions and 2,045 deletions.
23 changes: 13 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@
"license": "MIT",
"authors": [
{
"name": "Sparors Inc",
"name": "Isaac Sai",
"email": "[email protected]",
"homepage": "https://sparors.github.io"
},
{
"name": "Benjamin Manford",
"email": "[email protected]",
"homepage": "https://sparors.github.io"
}
],
"homepage": "https://github.com/sparors/laravel-ussd",
"keywords": ["Laravel", "Ussd"],
"require": {
"illuminate/support": "~5|~6|~7|~8|~9"
"illuminate/support": "~8|~9|~10"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"mockery/mockery": "^1.1",
"orchestra/testbench": "~3|~4|~5|~6|~7",
"sempro/phpunit-pretty-print": "^1.0"
"phpunit/phpunit": "^9.6",
"orchestra/testbench": "~6|~7|~8"
},
"autoload": {
"psr-4": {
Expand All @@ -34,10 +37,10 @@
"laravel": {
"providers": [
"Sparors\\Ussd\\UssdServiceProvider"
],
"aliases": {
"Ussd": "Sparors\\Ussd\\Facades\\Ussd"
}
]
}
},
"scripts": {
"test": "vendor/bin/phpunit"
}
}
49 changes: 6 additions & 43 deletions config/ussd.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,62 +4,25 @@

/*
|--------------------------------------------------------------------------
| State Class Namespace
| USSD Namespace
|--------------------------------------------------------------------------
|
| This value sets the root namespace for Ussd State component classes in
| your application.
| This sets the root namespace for USSD component classes.
|
*/

'state_namespace' => env('USSD_STATE_NS', 'App\\Http\\Ussd\\States'),
'namespace' => env('USSD_NAMESPACE', 'App\Ussd'),

/*
|--------------------------------------------------------------------------
| Action Class Namespace
|--------------------------------------------------------------------------
|
| This value sets the root namespace for Ussd Action component classes in
| your application.
|
*/

'action_namespace' => env('USSD_ACTION_NS', 'App\\Http\\Ussd\\Actions'),

/*
|--------------------------------------------------------------------------
| Store
| Record Store
|--------------------------------------------------------------------------
|
| This value sets the default store to use for the ussd record.
| The store can be found in your cache stores config
| This sets the cache store to be used by USSD Record.
|
*/

'cache_store' => env('USSD_STORE', null),


/*
|--------------------------------------------------------------------------
| Time to live
|--------------------------------------------------------------------------
|
| This value sets the default for how long the record values are to
| be cached in your application when not specified.
|
*/

'cache_ttl' => env('USSD_TTL', null),

/*
|--------------------------------------------------------------------------
| Default value
|--------------------------------------------------------------------------
|
| This value return the default store value when a given cache key
| is not found
|
*/
'record_store' => env('USSD_STORE'),

'cache_default' => env('USSD_DEFAULT_VALUE', null),
];
16 changes: 7 additions & 9 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
testdox="true"
processIsolation="false"
stopOnFailure="false"
printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
<coverage>
<include>
<directory>src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Package">
<directory suffix=".php">./tests/</directory>
<testsuite name="Unit">
<directory suffix=".php">./tests/Unit/</directory>
</testsuite>
<testsuite name="Integration">
<directory suffix=".php">./tests/Integration/</directory>
</testsuite>
</testsuites>
</phpunit>
Loading

0 comments on commit ac7088d

Please sign in to comment.