Skip to content

Commit 451b3ad

Browse files
author
Romain Monteil
committed
Merge branch 'develop'
2 parents a27a556 + 857210e commit 451b3ad

Some content is hidden

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

68 files changed

+2753
-651
lines changed

.scrutinizer.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
imports:
2+
- php
3+
4+
checks:
5+
php:
6+
code_rating: true
7+
duplication: true
8+
9+
filter:
10+
excluded_paths:
11+
- tests/
12+
tools:
13+
php_mess_detector: true
14+
php_cpd:
15+
excluded_dirs:
16+
- tests/
17+
php_loc:
18+
excluded_dirs:
19+
- tests/
20+
php_pdepend:
21+
excluded_dirs:
22+
2: tests/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ script:
3535
- sh -c "if [ '$COVERALLS' = '1' ]; then phpunit --stderr --coverage-clover build/logs/clover.xml; fi"
3636
- sh -c "if [ '$COVERALLS' = '1' ]; then php vendor/bin/coveralls -v; fi"
3737
- sh -c "if [ '$DEFAULT' = '1' ]; then phpunit --stderr; fi"
38-
- sh -c "if [ '$PHPCS' = '1' ]; then ./vendor/bin/phpcs -n -p --extensions=php --standard=vendor/squizlabs/php_codesniffer/CodeSniffer --ignore=vendor . ; fi"
38+
- sh -c "if [ '$PHPCS' = '1' ]; then ./vendor/bin/phpcs -n -p --extensions=php --standard=PSR2 --ignore=vendor --ignore=tests . ; fi"
3939

4040
notifications:
4141
email: false

README.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,45 @@
1-
# Fcm
2-
PHP Fcm library
1+
[![Build](https://img.shields.io/travis/ker0x/fcm/master.svg?style=flat-square)](https://travis-ci.org/ker0x/fcm)
2+
[![Coverage](https://img.shields.io/coveralls/ker0x/fcm/master.svg?style=flat-square)](https://coveralls.io/github/ker0x/fcm)
3+
[![Code Quality](https://img.shields.io/scrutinizer/g/ker0x/fcm.svg?style=flat-square)](https://scrutinizer-ci.com/g/ker0x/fcm/)
4+
[![Total Downloads](https://img.shields.io/packagist/dt/ker0x/fcm.svg?style=flat-square)](https://packagist.org/packages/ker0x/fcm)
5+
[![Latest Stable Version](https://img.shields.io/packagist/v/ker0x/fcm.svg?style=flat-square)](https://packagist.org/packages/ker0x/fcm)
6+
[![Documentation Status](https://readthedocs.org/projects/fcm/badge/?version=latest&style=flat-square)](http://fcm.readthedocs.org/en/latest/?badge=latest)
7+
[![License](https://img.shields.io/packagist/l/ker0x/fcm.svg?style=flat-square)](https://packagist.org/packages/ker0x/fcm)
8+
9+
# FCM PHP library
10+
11+
A PHP libray to send push notification with [Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging/)
12+
13+
> Note: This is a portage as a standalone library, with some enhancements, of the great plugin [Laravel-FCM](https://github.com/brozot/Laravel-FCM) by [Nicolas Brosy](https://github.com/brozot)
14+
15+
## Requirements
16+
17+
* PHP >= 7.0
18+
19+
## Documentation
20+
21+
The documentation is available [here](http://fcm.readthedocs.org/en/latest/)
22+
23+
## License
24+
25+
The MIT License (MIT)
26+
27+
Copyright (c) 2016 Romain Monteil
28+
29+
Permission is hereby granted, free of charge, to any person obtaining a copy
30+
of this software and associated documentation files (the "Software"), to deal
31+
in the Software without restriction, including without limitation the rights
32+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
33+
copies of the Software, and to permit persons to whom the Software is
34+
furnished to do so, subject to the following conditions:
35+
36+
The above copyright notice and this permission notice shall be included in all
37+
copies or substantial portions of the Software.
38+
39+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
42+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
44+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
45+
SOFTWARE.

composer.json

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,35 @@
11
{
2-
"name": "ker0x/fcm",
3-
"type": "library",
4-
"require": {
5-
"guzzlehttp/guzzle": "^6.2"
6-
},
7-
"require-dev": {
8-
"phpunit/phpunit": "^5.5",
9-
"satooshi/php-coveralls": "^1.0",
10-
"squizlabs/php_codesniffer": "^2.7"
11-
},
12-
"license": "MIT",
13-
"authors": [
14-
{
15-
"name": "Romain Monteil",
16-
"email": "rmo@emakina.fr"
17-
}
18-
],
19-
"autoload": {
20-
"psr-4": {
21-
"ker0x\\Fcm\\": "src/"
22-
}
23-
},
24-
"autoload-dev": {
25-
"psr-4": {
26-
"ker0x\\Fcm\\Test\\": "tests"
27-
}
2+
"name": "kerox/fcm",
3+
"type": "library",
4+
"description": "A PHP library to send push notification through Firebase Cloud Messaging",
5+
"keywords": ["fcm", "push", "notification", "firebase cloud messaging"],
6+
"homepage": "https://github.com/ker0x/fcm",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "Romain Monteil",
11+
"homepage": "http://kerox.fr",
12+
"email": "monteil.romain@gmail.com",
13+
"role": "Author"
2814
}
15+
],
16+
"require": {
17+
"php": ">=7.0",
18+
"guzzlehttp/guzzle": "^6.2"
19+
},
20+
"require-dev": {
21+
"phpunit/phpunit": "^5.5",
22+
"satooshi/php-coveralls": "^1.0",
23+
"squizlabs/php_codesniffer": "^2.7"
24+
},
25+
"autoload": {
26+
"psr-4": {
27+
"Kerox\\Fcm\\": "src"
28+
}
29+
},
30+
"autoload-dev": {
31+
"psr-4": {
32+
"Kerox\\Fcm\\Test\\": "tests"
33+
}
34+
}
2935
}

demo/example.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)