Skip to content

Commit

Permalink
Release 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mooTheo committed Oct 3, 2017
1 parent e193f44 commit 51721c0
Show file tree
Hide file tree
Showing 447 changed files with 52,450 additions and 9,626 deletions.
18 changes: 18 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

return Symfony\CS\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->setUsingCache(true)
->fixers(
[
'ordered_use',
'phpdoc_order',
'short_array_syntax',
'strict',
'strict_param'
]
)
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__)
);
453 changes: 208 additions & 245 deletions README.md

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php

/**
* Moosend API
*
* TODO: Add a description
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
*/

/**
* An example of a project-specific implementation.
*
* After registering this autoload function with SPL, the following line
* would cause the function to attempt to load the \Swagger\Client\Baz\Qux class
* from /path/to/project/lib/Baz/Qux.php:
*
* new \Swagger\Client\Baz\Qux;
*
* @param string $class The fully-qualified class name.
*
* @return void
*/
spl_autoload_register(function ($class) {

// project-specific namespace prefix
$prefix = 'Swagger\\Client\\';

// base directory for the namespace prefix
$base_dir = __DIR__ . '/lib/';

// does the class use the namespace prefix?
$len = strlen($prefix);
if (strncmp($prefix, $class, $len) !== 0) {
// no, move to the next registered autoloader
return;
}

// get the relative class name
$relative_class = substr($class, $len);

// replace the namespace prefix with the base directory, replace namespace
// separators with directory separators in the relative class name, append
// with .php
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';

// if the file exists, require it
if (file_exists($file)) {
require $file;
}
});
42 changes: 25 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
{
"name": "moosend/phpwrapper",
"type": "library",
"description": "Moosend PHP API Wrapper",
"keywords": ["moosend", "php", "wrapper"],
"homepage": "https://github.com/moosend/phpwrapper",
"license": "MIT",
"name": "moo-theo/php-api-wrapper",
"description": "",
"keywords": [
"moosend",
"wrapper",
"php",
"sdk",
"api"
],
"homepage": "http://moosend.com",
"license": "proprietary",
"authors": [
{
"name": "Giannis Tourkogiorgis",
"email": "jtourkos@gmail.com",
"role": "Developer"
"name": "Moosend",
"homepage": "https://moosend.com"
}
],
"require": {
"php": ">=5.3.0"
"php": ">=5.4",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "*"
"phpunit/phpunit": "~4.8",
"satooshi/php-coveralls": "~1.0",
"squizlabs/php_codesniffer": "~2.6",
"friendsofphp/php-cs-fixer": "~1.12"
},
"ext-curl": "*",
"autoload": {
"psr-0": {
"moosend": "src/",
"moosend\\Models": "src/",
"moosend\\Actions": "src/"
}
"psr-4": { "Moosend\\API\\Client\\":"lib/" }
},
"autoload-dev": {
"psr-4": { "Moosend\\API\\Client\\":"test/" }
}
}
Loading

0 comments on commit 51721c0

Please sign in to comment.