Skip to content

Commit 12e1d1d

Browse files
committed
- Repo init
0 parents  commit 12e1d1d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3896
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/vendor
2+
/composer.lock
3+
tests/*/output

.scrutinizer.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
checks:
2+
php: true
3+
4+
build:
5+
environment:
6+
php:
7+
version: 7.1.0
8+
variables:
9+
NETTE: default
10+
11+
dependencies:
12+
before:
13+
-
14+
command: 'mkdir -p build/logs'
15+
16+
tests:
17+
override:
18+
-
19+
command: 'vendor/bin/tester tests -p php -c ./tests/php.ini-unix --coverage build/logs/clover.xml --coverage-src src'
20+
coverage:
21+
file: build/logs/clover.xml
22+
format: php-clover
23+
24+
filter:
25+
excluded_paths:
26+
- tests/*
27+
28+
coding_style:
29+
php:
30+
indentation:
31+
general:
32+
use_tabs: true
33+
spaces:
34+
before_parentheses:
35+
closure_definition: true

.travis.composer.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
$version = getenv('NETTE');
4+
5+
if (!$version || $version == 'default') {
6+
exit;
7+
}
8+
9+
echo "Nette version " . $version . PHP_EOL;
10+
11+
$file = __DIR__ . '/composer.json';
12+
$content = file_get_contents($file);
13+
$composer = json_decode($content, TRUE);
14+
15+
$composer['require']['nette/di'] = $version;
16+
$composer['require']['nette/utils'] = $version;
17+
$content = json_encode($composer);
18+
file_put_contents($file, $content);

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: php
2+
3+
env:
4+
- NETTE=default
5+
- NETTE=~2.4.0
6+
7+
php:
8+
- 7.1
9+
- 7.2
10+
11+
before_install:
12+
- composer self-update
13+
14+
before_script:
15+
- php .travis.composer.php
16+
- composer install --no-interaction --prefer-source --dev
17+
18+
script:
19+
- vendor/bin/tester -s -p php -c ./tests/php.ini-unix tests
20+
21+
after_failure:
22+
- 'for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done'

composer.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name" : "ipub/json-api-client",
3+
"type" : "library",
4+
"description" : "JSON:API client for connecting to apis",
5+
"keywords" : ["json:api", "api", "client", "fastybird", "ipub", "ipublikuj", "framework", "tools"],
6+
"homepage" : "https://github.com/iPublikuj/json-api-client",
7+
"license" : ["GPL-2.0", "GPL-3.0"],
8+
9+
"authors": [
10+
{
11+
"name" : "iPublikuj:cms",
12+
"email" : "[email protected]",
13+
"homepage" : "https://www.ipublikuj.eu/"
14+
}
15+
],
16+
17+
"support":{
18+
"email" :"[email protected]",
19+
"issues" :"https://github.com/iPublikuj/json-api-client/issues"
20+
},
21+
22+
"extra": {
23+
"ipub" : {
24+
"configuration" : {
25+
"extensions" : {
26+
"jsonApiClient" : "IPub\\JsonAPIClient\\DI\\JsonAPIClientExtension"
27+
}
28+
}
29+
}
30+
},
31+
32+
"require": {
33+
"php" : ">=7.1.0",
34+
35+
"nette/di" : "~2.4",
36+
"nette/utils" : "~2.4",
37+
38+
"guzzlehttp/guzzle" : "^6.2"
39+
},
40+
41+
"require-dev": {
42+
"nette/bootstrap" : "~2.4",
43+
"nette/mail" : "~2.4",
44+
"nette/robot-loader" : "~2.4",
45+
"nette/safe-stream" : "~2.3",
46+
"nette/tester" : "~2.0",
47+
48+
"tracy/tracy" : "~2.4",
49+
50+
"pds/skeleton" : "~1.0"
51+
},
52+
53+
"autoload": {
54+
"psr-0": {
55+
"IPub\\JsonAPIClient\\": "src/"
56+
}
57+
}
58+
}

docs/en/index.md

Whitespace-only changes.

license.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
Licenses
2+
========
3+
4+
Good news everyone! You may use iPublikuj Framework under the terms of either
5+
the New BSD License or the GNU General Public License (GPL) version 2 or 3.
6+
7+
The BSD License is recommended for most projects. It is easy to understand and it
8+
places almost no restrictions on what you can do with the framework. If the GPL
9+
fits better to your project, you can use the framework under this license.
10+
11+
You don't have to notify anyone which license you are using. You can freely
12+
use iPublikuj Framework in commercial projects as long as the copyright header
13+
remains intact.
14+
15+
New BSD License
16+
---------------
17+
18+
Copyright (c) 2014 Adam Kadlec
19+
All rights reserved.
20+
21+
Redistribution and use in source and binary forms, with or without modification,
22+
are permitted provided that the following conditions are met:
23+
24+
* Redistributions of source code must retain the above copyright notice,
25+
this list of conditions and the following disclaimer.
26+
27+
* Redistributions in binary form must reproduce the above copyright notice,
28+
this list of conditions and the following disclaimer in the documentation
29+
and/or other materials provided with the distribution.
30+
31+
* Neither the name of "iPublikuj Framework" nor the names of its contributors
32+
may be used to endorse or promote products derived from this software
33+
without specific prior written permission.
34+
35+
This software is provided by the copyright holders and contributors "as is" and
36+
any express or implied warranties, including, but not limited to, the implied
37+
warranties of merchantability and fitness for a particular purpose are
38+
disclaimed. In no event shall the copyright owner or contributors be liable for
39+
any direct, indirect, incidental, special, exemplary, or consequential damages
40+
(including, but not limited to, procurement of substitute goods or services;
41+
loss of use, data, or profits; or business interruption) however caused and on
42+
any theory of liability, whether in contract, strict liability, or tort
43+
(including negligence or otherwise) arising in any way out of the use of this
44+
software, even if advised of the possibility of such damage.
45+
46+
47+
48+
GNU General Public License
49+
--------------------------
50+
51+
GPL licenses are very very long, so instead of including them here we offer
52+
you URLs with full text:
53+
54+
- [GPL version 2](http://www.gnu.org/licenses/gpl-2.0.html)
55+
- [GPL version 3](http://www.gnu.org/licenses/gpl-3.0.html)

readme.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# JSON:API client
2+
3+
[![Build Status](https://img.shields.io/travis/iPublikuj/json-api-client.svg?style=flat-square)](https://travis-ci.org/iPublikuj/json-api-client)
4+
[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/iPublikuj/json-api-client.svg?style=flat-square)](https://scrutinizer-ci.com/g/iPublikuj/json-api-client/?branch=master)
5+
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/iPublikuj/json-api-client.svg?style=flat-square)](https://scrutinizer-ci.com/g/iPublikuj/json-api-client/?branch=master)
6+
[![Latest Stable Version](https://img.shields.io/packagist/v/ipub/json-api-client.svg?style=flat-square)](https://packagist.org/packages/ipub/json-api-client)
7+
[![Composer Downloads](https://img.shields.io/packagist/dt/ipub/json-api-client.svg?style=flat-square)](https://packagist.org/packages/ipub/json-api-client)
8+
[![License](https://img.shields.io/packagist/l/ipub/json-api-client.svg?style=flat-square)](https://packagist.org/packages/ipub/json-api-client)
9+
10+
Extension for creating [json:api](http://jsonapi.org) client for [Nette Framework](http://nette.org/)
11+
12+
## Installation
13+
14+
The best way to install ipub/json-api-client is using [Composer](http://getcomposer.org/):
15+
16+
```sh
17+
$ composer require ipub/json-api-client
18+
```
19+
20+
After that you have to register extension in config.neon.
21+
22+
```neon
23+
extensions:
24+
jsonApiClient: IPub\JsonAPIClient\DI\JsonAPIClientExtension
25+
```
26+
27+
## Documentation
28+
29+
Learn how to use smart confirmation dialogs in [documentation](https://github.com/iPublikuj/json-api-client/blob/master/docs/en/index.md).
30+
31+
***
32+
Homepage [https://www.ipublikuj.eu](https://www.ipublikuj.eu) and repository [http://github.com/iPublikuj/json-api-client](http://github.com/iPublikuj/json-api-client).

0 commit comments

Comments
 (0)