Skip to content

Commit

Permalink
Add doc, ecs, and travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Mar 31, 2020
1 parent 148dc89 commit 4d09adc
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 8 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: php

php:
- '7.3'
- '7.4'

before_script:
- composer self-update
- composer install

script:
- composer validate --strict
- vendor/bin/ecs check .
1 change: 0 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,5 @@ public function getConfigTreeBuilder()
*/
protected function addGlobalSection(ArrayNodeDefinition $node)
{

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function load(array $configs, ContainerBuilder $container)

$loader = new YamlFileLoader(
$container,
new FileLocator(dirname(__DIR__) . '/Resources/config')
new FileLocator(dirname(__DIR__).'/Resources/config')
);
$loader->load('services.yaml');
}
Expand Down
1 change: 0 additions & 1 deletion PrometeePayumStripeCheckoutSessionBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@

class PrometeePayumStripeCheckoutSessionBundle extends Bundle
{

}
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,28 @@ See https://stripe.com/docs/payments/checkout for more information.

Install using Composer :

```bash
composer require prometee/payum-stripe-checkout-session-bundle
```
$ composer require prometee/payum-stripe-checkout-session-bundle

Choose one of [php-http/client-implementation](https://packagist.org/providers/php-http/client-implementation),
the most used is [php-http/guzzle6-adapter](https://packagist.org/packages/php-http/guzzle6-adapter)

```bash
composer require php-http/guzzle6-adapter
```

## Usage

```php
See documentation here :
https://github.com/Prometee/PayumStripeCheckoutSession/blob/master/README.md

## More

The Sylius plugin :

https://github.com/Prometee/SyliusPayumStripeCheckoutSessionPlugin

```

[ico-version]: https://img.shields.io/packagist/v/Prometee/payum-stripe-checkout-session-bundle.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"description": "Payum Stripe checkout session gateway bundle",
"type": "symfony-bundle",
"require": {
"prometee/payum-stripe-checkout-session": "*",
"prometee/payum-stripe-checkout-session": "^1.0",
"symfony/http-kernel": "^4.1",
"symfony/dependency-injection": "^4.1",
"symfony/config": "^4.1"
},
"require-dev": {
"phpunit/phpunit": "^8.5"
"phpunit/phpunit": "^8.5",
"symplify/easy-coding-standard": "^7.2",
"php-http/guzzle6-adapter": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 2 additions & 0 deletions easy-coding-standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
- { resource: 'vendor/symplify/easy-coding-standard/config/set/symfony.yaml' }

0 comments on commit 4d09adc

Please sign in to comment.