Skip to content

Commit

Permalink
composer.json update
Browse files Browse the repository at this point in the history
  • Loading branch information
slvler committed Jan 20, 2023
1 parent 84278d9 commit 23aa35e
Show file tree
Hide file tree
Showing 19 changed files with 62 additions and 83 deletions.
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/vendor
.idea
.DS_Store
.DS_Store
.php_cs
.php-cs-fixer.cache
.phpunit.result.cache
build
composer.lock
coverage
docs
psalm.xml
vendor
Empty file added CHANGELOG.md
Empty file.
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2021 slvler <slvler@proton.me>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
25 changes: 15 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
{
"name": "qwerty/posnet-payment-service",
"description": "yapikredi posnet payment service",
"name": "slvler/posnet-payment-service",
"license": "MIT",
"authors": [{
"name": "Qwerty",
"email": "qwerty@qwerty.com"
}],
"description": "posnet payment system from turkish banks",
"type": "package",
"authors": [
{
"name": "slvler",
"email": "slvler@proton.me"
}
],
"require": {
"php": "^7.4 || ^8.0"
"php": "^7.4"
},
"autoload": {
"psr-4": {
"Qwerty\\PosnetPaymentService\\": "src/"
"slvler\\PosnetPaymentService\\": "src/"
}
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
7 changes: 1 addition & 6 deletions src/Client.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<?php

/*
* sabit değişkenlerin ve verilerin kullanıldığı
*/


namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;


class Client implements ClientInterface {
Expand Down
2 changes: 1 addition & 1 deletion src/ClientInterface.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php declare(strict_types=1);


namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;


interface ClientInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;

class Config implements ConfigInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/ConfigInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;

interface ConfigInterface
{
Expand Down
6 changes: 1 addition & 5 deletions src/Financal.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/*
* Sepet İşlemleri - sepetten gelen verilerin kontrolü döndürülmesi
*/

namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;

class Financal implements FinancalInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/FinancalInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;

interface FinancalInterface
{
Expand Down
12 changes: 1 addition & 11 deletions src/Hash.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
<?php

namespace Qwerty\PosnetPaymentService;

namespace slvler\PosnetPaymentService;

trait Hash
{


function StringHash($originalString){
return base64_encode(hash('sha256',$originalString,true));

}



}




?>
7 changes: 1 addition & 6 deletions src/OrderClass.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<?php

/*
* Sepet İşlemleri - sepetten gelen verilerin kontrolü döndürülmesi
*/


namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;


class OrderClass
Expand Down
2 changes: 1 addition & 1 deletion src/OrderInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;

interface OrderInterface
{
Expand Down
6 changes: 1 addition & 5 deletions src/RequestClass.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/*
* gerekli olan request isteklerinin atıldığı
*/

namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;


class RequestClass implements RequestInterface {
Expand Down
2 changes: 1 addition & 1 deletion src/RequestInterface.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;

interface RequestInterface
{
Expand Down
7 changes: 1 addition & 6 deletions src/ResponseClass.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<?php

/*
* requestlerden dönen verilerin çözülmesi
*
*/

namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;

class ResponseClass implements ResponseInterface
{
Expand Down
13 changes: 1 addition & 12 deletions src/ResponseInterface.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
<?php declare(strict_types=1);

namespace Qwerty\PosnetPaymentService;


namespace slvler\PosnetPaymentService;

interface ResponseInterface
{
/**
* @param string $url URL
* @return void
* @see curl_init()
*
*/
public function __construct($requestClass);

public function getRequestClassSimpleXml();
Expand All @@ -22,7 +14,4 @@ public function getRequestClass();

public function ResponseRequest();




}
8 changes: 1 addition & 7 deletions src/SeederClass.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<?php

/*
* gerekli olan xml dosyalarının hazırlandığı
*
*/


namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;


use DOMDocument;
Expand Down
9 changes: 2 additions & 7 deletions src/SeederInterface.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<?php declare(strict_types=1);


namespace Qwerty\PosnetPaymentService;
namespace slvler\PosnetPaymentService;

interface SeederInterface
{
/**
* @param string $url URL
* @return void
* @see curl_init()
*
*/

public function setError();

public function __construct(Config $config);
Expand Down

0 comments on commit 23aa35e

Please sign in to comment.