Skip to content

Commit

Permalink
update composer
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenefvdm committed Aug 29, 2023
1 parent ef77899 commit dc90dde
Show file tree
Hide file tree
Showing 4 changed files with 705 additions and 750 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ A WHMCS API designed to run standalone or as part of a Laravel Application

Requirements:

- PHP 8.0
- PHP 8.1
- WHMCS

# Why this package?

WHMCS already has an extensive API. Why build another API? The reason is quite simple:

The WHMCS API code examples relies on CURL. Mocking CURL is possible but complicated. Instead Laravel already has beautiful HTTP testing and Http::fake mocking. Using Laravel (and in this case, Pest) means application development is sped up tremendously. Essentially you get away from testing against development servers. Even if you're not using Laravel, the framework's testing ability means it's possibly to write more complex software that's fail safe.
The WHMCS API code examples depend on CURL. Mocking CURL is possible but complicated. Instead, Laravel already has beautiful HTTP testing and Http::fake mocking. Using Laravel (and in this case, Pest) means application development is sped up tremendously. Essentially you get away from testing against development servers. Even if you're not using Laravel, the framework's testing ability means it's possibly to write more complex software that's fail safe.

# Usage

Expand Down Expand Up @@ -224,9 +224,9 @@ For local editing, add this to `composer.json`:
"repositories" : [
{
"type": "path",
"url": "../whmcs-api"
"url": "../whmcs-php-api"
}
]
],
```

Then in `require` section:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fintech-systems/whmcs-php-api",
"description": "A PHP API to inteface with WHMCS",
"description": "A PHP API to interface with WHMCS",
"type": "library",
"license": "MIT",
"autoload": {
Expand All @@ -20,7 +20,7 @@
}
],
"require": {
"php": "^8.0|^8.1",
"php": "^8.1",
"symfony/dotenv": "^5.3",
"spatie/ray": "^1.30",
"guzzlehttp/guzzle": "^7.5"
Expand Down
Loading

0 comments on commit dc90dde

Please sign in to comment.