Skip to content

Commit cc2fe62

Browse files
committed
init services
0 parents  commit cc2fe62

6 files changed

Lines changed: 164 additions & 0 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
vendor
2+
composer.lock
3+
.phpunit.result.cache
4+
.php-cs-fixer.dist.php
5+
build
6+
.env

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 React More
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.MD

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Adapter Guzzle for CodeIgniter 4
2+
3+
Library ini menyediakan integrasi **Adapter Guzzle** dengan framework **CodeIgniter 4**.
4+
Membantu developer dengan mudah melalui Service Facade.
5+
6+
---
7+
8+
## 📦 Installation
9+
10+
1. **Install via Composer**
11+
```bash
12+
composer require reactmore/adapter-support
13+
```

composer.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name": "reactmore/support-adapter",
3+
"type": "library",
4+
"license": "MIT",
5+
"autoload": {
6+
"psr-4": {
7+
"Reactmore\\SupportAdapter\\": "src/"
8+
}
9+
},
10+
"autoload-dev": {
11+
"psr-4": {
12+
"Tests\\": "tests",
13+
"Tests\\Support\\": "tests/_support"
14+
}
15+
},
16+
"authors": [
17+
{
18+
"name": "reactmore",
19+
"email": "reactmorecom@gmail.com"
20+
}
21+
],
22+
"require": {
23+
"php": "^8.1",
24+
"ext-pdo": "*",
25+
"ext-curl": "*",
26+
"ext-json": "*",
27+
"ext-mbstring": "*",
28+
"guzzlehttp/guzzle": "^7.0.1",
29+
"psr/http-message": "~1.0"
30+
},
31+
"require-dev": {
32+
"codeigniter4/devkit": "^1.3",
33+
"codeigniter4/framework": "^4.6"
34+
},
35+
"minimum-stability": "dev",
36+
"prefer-stable": true,
37+
"config": {
38+
"allow-plugins": {
39+
"phpstan/extension-installer": true
40+
}
41+
},
42+
"scripts": {
43+
"test": "phpunit",
44+
"cs-fix": "php-cs-fixer fix --ansi --verbose --diff"
45+
}
46+
}

phpunit.xml.dist

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
5+
bootstrap="vendor/codeigniter4/framework/system/Test/bootstrap.php"
6+
backupGlobals="false"
7+
beStrictAboutOutputDuringTests="true"
8+
colors="true"
9+
columns="max"
10+
failOnRisky="true"
11+
failOnWarning="true"
12+
cacheDirectory="build/.phpunit.cache">
13+
<coverage
14+
includeUncoveredFiles="true"
15+
pathCoverage="false"
16+
ignoreDeprecatedCodeUnits="true"
17+
disableCodeCoverageIgnore="true">
18+
<report>
19+
<clover outputFile="build/logs/clover.xml" />
20+
<html outputDirectory="build/logs/html" />
21+
<php outputFile="build/logs/coverage.serialized" />
22+
<text outputFile="php://stdout" showUncoveredFiles="false" />
23+
</report>
24+
</coverage>
25+
<testsuites>
26+
<testsuite name="main">
27+
<directory>./tests</directory>
28+
</testsuite>
29+
</testsuites>
30+
<logging>
31+
<testdoxHtml outputFile="build/logs/testdox.html" />
32+
<testdoxText outputFile="build/logs/testdox.txt" />
33+
<junit outputFile="build/logs/logfile.xml" />
34+
</logging>
35+
<source>
36+
<include>
37+
<directory suffix=".php">./src/</directory>
38+
</include>
39+
<exclude>
40+
<directory suffix=".php">./src/Config</directory>
41+
</exclude>
42+
</source>
43+
<php>
44+
<server name="app.baseURL" value="http://example.com/" />
45+
<server name="CODEIGNITER_SCREAM_DEPRECATIONS" value="0" />
46+
<!-- Directory containing phpunit.xml -->
47+
<const name="HOMEPATH" value="./" />
48+
<!-- Directory containing the Paths config file -->
49+
<const name="CONFIGPATH" value="vendor/codeigniter4/framework/app/Config/" />
50+
<!-- Directory containing the front controller (index.php) -->
51+
<const name="PUBLICPATH" value="./public/" />
52+
<!-- Database configuration -->
53+
<!-- Uncomment to provide your own database for testing
54+
<env name="database.tests.hostname" value="localhost"/>
55+
<env name="database.tests.database" value="tests"/>
56+
<env name="database.tests.username" value="tests_user"/>
57+
<env name="database.tests.password" value=""/>
58+
<env name="database.tests.DBDriver" value="MySQLi"/>
59+
<env name="database.tests.DBPrefix" value="tests_"/>
60+
-->
61+
62+
<!-- Tripay Authentication -->
63+
<env name="Tripay.stage" value="" />
64+
<env name="Tripay.apiKey" value="" />
65+
<env name="Tripay.privateKey" value="" />
66+
<env name="Tripay.merchantCode" value="" />
67+
</php>
68+
</phpunit>

src/Config/Services.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Reactmore\SupportAdapter\Config;
4+
5+
use CodeIgniter\Config\BaseService;
6+
7+
class Services extends BaseService
8+
{
9+
10+
}

0 commit comments

Comments
 (0)