Skip to content

Commit

Permalink
Merge pull request #1 from encreinformatique/new/composer
Browse files Browse the repository at this point in the history
new : use composer to include the Api wrapper
  • Loading branch information
encreinformatique authored Nov 28, 2022
2 parents 31bb77e + 05cc27a commit 7c520b8
Show file tree
Hide file tree
Showing 14 changed files with 727 additions and 478 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
; Unix-style newlines with a newline ending every file
[*]
end_of_line = LF
insert_final_newline = true
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on:
push: ~
pull_request: ~

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
phpunit-versions: ['latest']
include:
- operating-system: 'ubuntu-latest'
php-versions: '7.2'
phpunit-versions: '8.5.13'
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: soap
ini-values: post_max_size=256M, max_execution_time=180
tools: phpunit:${{ matrix.phpunit-versions }}

- name: Install Dependencies
run: composer install --no-interaction --prefer-dist

- name: Process the tests
run: composer test
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.php-version
composer.lock
.idea/vcs.xml
vendor/
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions .idea/Acumbamail-PHP-API.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ Acumbamail PHP API
Usage / Uso
--------------

###English
- Include the class in your PHP file.
### English
- `composer require encreinformatique/acumbamail-php`
- Make an object of the class
**$api = new AcumbamailAPI(authtoken);**
`$api = new \EncreInformatique\AcumbamailApi\AcumbamailAPI(authtoken);`
- Use all the methods from the API

###Spanish
### Spanish
- Incluye la clase en tu archivo PHP.
- Crea un objeto de la clase
**$api = new AcumbamailAPI(authtoken);**
`$api = new \EncreInformatique\AcumbamailApi\AcumbamailAPI(authtoken);`
- Usa todos los métodos de la API

Changelog
--------------
2.0 - composer

* new : primera versión con composer

1.1

* Añadidos todos los métodos de la API junto a ejemplos de uso.
Expand Down
Loading

0 comments on commit 7c520b8

Please sign in to comment.