Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PauRevo committed Apr 18, 2018
0 parents commit dc840cc
Show file tree
Hide file tree
Showing 20 changed files with 3,799 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SAGE_INSTANCE=
CLIENT_ID=
CLIENT_SECRET=

TEST_SAGE_USERNAME=
TEST_SAGE_PASSWORD=
TEST_SAGE_SECURITY_TOKEN=
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
.idea
/vendor
40 changes: 40 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php
/**
* Config for PHP-CS-Fixer ver2
* To add it to phptstorm:
* https://laracasts.com/series/how-to-be-awesome-in-phpstorm/episodes/26
* https://hackernoon.com/how-to-configure-phpstorm-to-use-php-cs-fixer-1844991e521f
*/
$rules = [
'@PSR2' => true,
// addtional rules
'array_syntax' => ['syntax' => 'short'],
'no_multiline_whitespace_before_semicolons' => true,
'no_short_echo_tag' => true,
'no_unused_imports' => true,
'not_operator_with_successor_space' => true,
'blank_line_after_opening_tag' => true,
'method_separation' => true,
'no_useless_return' => true,
'no_useless_else' => true,
'ternary_to_null_coalescing' => true,
'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true],
];
$excludes = [
// add exclude project directory
'vendor',
'node_modules',
'bootstrap'
];
return PhpCsFixer\Config::create()
->setRiskyAllowed(false)
->setRules($rules)
->setFinder(
PhpCsFixer\Finder::create()
->in('.')
->exclude($excludes)
->notName('README.md')
->notName('_ide_helper.php')
->notName('*.xml')
->notName('*.yml')
);
26 changes: 26 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "revosystems/sage-accounting",
"description": "Api to integrate with Sage Accounting.",
"type": "library",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": ">=5.6.4",
"revosystems/sage-api": "^1.1"
},
"require-dev": {
"vlucas/phpdotenv": "^2.4",
"phpunit/phpunit": "~6.0"
},
"autoload": {
"psr-4": {
"RevoSystems\\SageAccounting\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "stable"
}
Loading

0 comments on commit dc840cc

Please sign in to comment.