Skip to content

Commit 68aad92

Browse files
committed
updates
1 parent 082f96b commit 68aad92

File tree

6 files changed

+128
-26
lines changed

6 files changed

+128
-26
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
composer.lock
33
.DS_Store
44
/build
5+
/.idea
6+
/.vscode
7+
.phpunit.result.cache

.php_cs

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<?php
2+
3+
return PhpCsFixer\Config::create()
4+
->setRules([
5+
'@PSR2' => true,
6+
'array_syntax' => ['syntax' => 'short'],
7+
'combine_consecutive_unsets' => true,
8+
'method_separation' => true,
9+
'no_multiline_whitespace_before_semicolons' => true,
10+
'single_quote' => true,
11+
12+
'binary_operator_spaces' => [
13+
'align_double_arrow' => false,
14+
'align_equals' => false,
15+
],
16+
// 'blank_line_after_opening_tag' => true,
17+
// 'blank_line_before_return' => true,
18+
'braces' => [
19+
'allow_single_line_closure' => true,
20+
],
21+
// 'cast_spaces' => true,
22+
// 'class_definition' => ['singleLine' => true],
23+
'concat_space' => ['spacing' => 'none'],
24+
'declare_equal_normalize' => true,
25+
'function_typehint_space' => true,
26+
'hash_to_slash_comment' => true,
27+
'include' => true,
28+
'lowercase_cast' => true,
29+
// 'native_function_casing' => true,
30+
// 'new_with_braces' => true,
31+
// 'no_blank_lines_after_class_opening' => true,
32+
// 'no_blank_lines_after_phpdoc' => true,
33+
// 'no_empty_comment' => true,
34+
// 'no_empty_phpdoc' => true,
35+
// 'no_empty_statement' => true,
36+
'no_extra_consecutive_blank_lines' => [
37+
'curly_brace_block',
38+
'extra',
39+
'parenthesis_brace_block',
40+
'square_brace_block',
41+
'throw',
42+
'use',
43+
],
44+
// 'not_operator_with_space' => true,
45+
'not_operator_with_successor_space' => true,
46+
// 'no_leading_import_slash' => true,
47+
// 'no_leading_namespace_whitespace' => true,
48+
// 'no_mixed_echo_print' => ['use' => 'echo'],
49+
'no_multiline_whitespace_around_double_arrow' => true,
50+
// 'no_short_bool_cast' => true,
51+
// 'no_singleline_whitespace_before_semicolons' => true,
52+
'no_spaces_around_offset' => true,
53+
// 'no_trailing_comma_in_list_call' => true,
54+
// 'no_trailing_comma_in_singleline_array' => true,
55+
// 'no_unneeded_control_parentheses' => true,
56+
'no_unused_imports' => true,
57+
'no_whitespace_before_comma_in_array' => true,
58+
'no_whitespace_in_blank_line' => true,
59+
// 'normalize_index_brace' => true,
60+
'object_operator_without_whitespace' => true,
61+
// 'php_unit_fqcn_annotation' => true,
62+
// 'phpdoc_align' => true,
63+
// 'phpdoc_annotation_without_dot' => true,
64+
// 'phpdoc_indent' => true,
65+
// 'phpdoc_inline_tag' => true,
66+
// 'phpdoc_no_access' => true,
67+
// 'phpdoc_no_alias_tag' => true,
68+
// 'phpdoc_no_empty_return' => true,
69+
// 'phpdoc_no_package' => true,
70+
// 'phpdoc_no_useless_inheritdoc' => true,
71+
// 'phpdoc_return_self_reference' => true,
72+
// 'phpdoc_scalar' => true,
73+
// 'phpdoc_separation' => true,
74+
// 'phpdoc_single_line_var_spacing' => true,
75+
// 'phpdoc_summary' => true,
76+
// 'phpdoc_to_comment' => true,
77+
// 'phpdoc_trim' => true,
78+
// 'phpdoc_types' => true,
79+
// 'phpdoc_var_without_name' => true,
80+
// 'pre_increment' => true,
81+
// 'return_type_declaration' => true,
82+
// 'self_accessor' => true,
83+
// 'short_scalar_cast' => true,
84+
'single_blank_line_before_namespace' => true,
85+
// 'single_class_element_per_statement' => true,
86+
// 'space_after_semicolon' => true,
87+
// 'standardize_not_equals' => true,
88+
'ternary_operator_spaces' => true,
89+
'trailing_comma_in_multiline_array' => true,
90+
'trim_array_spaces' => true,
91+
'unary_operator_spaces' => true,
92+
'whitespace_after_comma_in_array' => true,
93+
])
94+
//->setIndent("\t")
95+
->setLineEnding("\n");
File renamed without changes.

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: laravel

README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,26 @@ Google Api Client Wrapper
33

44
> Google api php client wrapper with Cloud Platform and Laravel 4 & 5 support
55
6+
[![Latest Stable Version](https://poser.pugx.org/pulkitjalan/google-apiclient/v/stable?format=flat-square)](https://packagist.org/packages/pulkitjalan/google-apiclient)
7+
[![MIT License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](http://www.opensource.org/licenses/MIT)
68
[![Build Status](http://img.shields.io/travis/pulkitjalan/google-apiclient.svg?style=flat-square)](https://travis-ci.org/pulkitjalan/google-apiclient)
7-
[![Scrutinizer Code Quality](http://img.shields.io/scrutinizer/g/pulkitjalan/google-apiclient/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/pulkitjalan/google-apiclient/)
9+
[![Quality Score](http://img.shields.io/scrutinizer/g/pulkitjalan/google-apiclient/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/pulkitjalan/google-apiclient/)
810
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/pulkitjalan/google-apiclient/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/pulkitjalan/google-apiclient/code-structure/master)
9-
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](http://www.opensource.org/licenses/MIT)
10-
[![Latest Version](http://img.shields.io/packagist/v/pulkitjalan/google-apiclient.svg?style=flat-square)](https://packagist.org/packages/pulkitjalan/google-apiclient)
11+
[![StyleCI](https://styleci.io/repos/29422724/shield)](https://styleci.io/repos/29422724)
1112
[![Total Downloads](https://img.shields.io/packagist/dt/pulkitjalan/google-apiclient.svg?style=flat-square)](https://packagist.org/packages/pulkitjalan/google-apiclient)
1213

1314
## Requirements
1415

15-
This package requires PHP >=5.4
16+
* PHP >=7.2
1617

1718
## Installation
1819

19-
Install via composer - edit your `composer.json` to require the package.
20+
Install via composer
2021

21-
```js
22-
"require": {
23-
"pulkitjalan/google-apiclient": "3.*"
24-
}
22+
```bash
23+
composer require pulkitjalan/google-apiclient
2524
```
2625

27-
Then run `composer update` in your terminal to pull it in.
28-
29-
Or use `composer require pulkitjalan/google-apiclient`
30-
3126
## Laravel
3227

3328
To use in laravel add the following to the `providers` array in your `config/app.php`
@@ -44,9 +39,9 @@ Next add the following to the `aliases` array in your `config/app.php`
4439

4540
Finally run `php artisan vendor:publish --provider="PulkitJalan\Google\GoogleServiceProvider" --tag="config"` to publish the config file.
4641

47-
#### Looking for a Laravel 4 compatible version?
42+
#### Using an older version of PHP / Laravel?
4843

49-
Checkout the [1.0 branch](https://github.com/pulkitjalan/google-apiclient/tree/1.0)
44+
If you are on a PHP version below 7.2 or a Laravel version below 5.8 just use an older version of this package.
5045

5146
## Usage
5247

composer.json

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,41 @@
11
{
22
"name": "pulkitjalan/google-apiclient",
3-
"description": "Google api php client wrapper with Cloud Platform and Laravel 4 & 5 support",
3+
"description": "Google api php client wrapper with Cloud Platform and Laravel support",
44
"homepage": "https://github.com/pulkitjalan/google-apiclient",
5-
"keywords": ["laravel", "google", "cloud platform"],
5+
"keywords": [
6+
"laravel",
7+
"google",
8+
"cloud platform"
9+
],
610
"license": "MIT",
711
"authors": [
812
{
913
"name": "Pulkit Jalan"
1014
}
1115
],
1216
"require": {
13-
"php": ">=5.4.0",
14-
"illuminate/support": "*",
15-
"google/apiclient": "^2.0"
17+
"php": "^7.2",
18+
"illuminate/support": "~5.8.0|^6.0",
19+
"google/apiclient": "^2.2"
1620
},
1721
"require-dev": {
18-
"phpunit/phpunit": "4.*",
19-
"mockery/mockery": "0.9.*"
22+
"phpunit/phpunit": "^8.3",
23+
"mockery/mockery": "^1.2.3"
2024
},
2125
"autoload": {
2226
"psr-4": {
2327
"PulkitJalan\\Google\\": "src/"
2428
}
2529
},
30+
"scripts": {
31+
"test": "vendor/bin/phpunit"
32+
},
33+
"config": {
34+
"sort-packages": true
35+
},
2636
"extra": {
2737
"branch-alias": {
28-
"dev-master": "3.0.x-dev"
38+
"dev-master": "4.0.x-dev"
2939
},
3040
"laravel": {
3141
"providers": [
@@ -35,7 +45,5 @@
3545
"Google": "PulkitJalan\\Google\\Facades\\Google"
3646
}
3747
}
38-
},
39-
"minimum-stability": "dev",
40-
"prefer-stable": true
48+
}
4149
}

0 commit comments

Comments
 (0)