Skip to content

Commit

Permalink
Merge pull request #3 from montross50/feature/laravel7
Browse files Browse the repository at this point in the history
Laravel 7
  • Loading branch information
montross50 authored Sep 21, 2020
2 parents 9cf1efc + dd373ff commit b3a69d6
Show file tree
Hide file tree
Showing 12 changed files with 1,359 additions and 1,362 deletions.
2 changes: 1 addition & 1 deletion .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":532:{a:2:{s:7:"defects";a:3:{s:59:"Montross50\UptimeRobotApi\ManagerTests::testApiKeyInsertion";i:4;s:62:"Montross50\UptimeRobotApi\ManagerTests::testMergeApiKeyAddsKey";i:4;s:81:"Montross50\UptimeRobotApi\ManagerTests::testMergeApiKeyDoesNotOverridePassedInKey";i:4;}s:5:"times";a:3:{s:59:"Montross50\UptimeRobotApi\ManagerTests::testApiKeyInsertion";d:2.359;s:62:"Montross50\UptimeRobotApi\ManagerTests::testMergeApiKeyAddsKey";d:0.112;s:81:"Montross50\UptimeRobotApi\ManagerTests::testMergeApiKeyDoesNotOverridePassedInKey";d:0.105;}}}
C:37:"PHPUnit\Runner\DefaultTestResultCache":532:{a:2:{s:7:"defects";a:3:{s:59:"Montross50\UptimeRobotApi\ManagerTests::testApiKeyInsertion";i:4;s:62:"Montross50\UptimeRobotApi\ManagerTests::testMergeApiKeyAddsKey";i:4;s:81:"Montross50\UptimeRobotApi\ManagerTests::testMergeApiKeyDoesNotOverridePassedInKey";i:4;}s:5:"times";a:3:{s:59:"Montross50\UptimeRobotApi\ManagerTests::testApiKeyInsertion";d:2.619;s:62:"Montross50\UptimeRobotApi\ManagerTests::testMergeApiKeyAddsKey";d:0.135;s:81:"Montross50\UptimeRobotApi\ManagerTests::testMergeApiKeyDoesNotOverridePassedInKey";d:0.109;}}}
44 changes: 22 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Changelog

All Notable changes to `uptime-robot-api` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## NEXT - YYYY-MM-DD

### Added
- Nothing

### Deprecated
- Nothing

### Fixed
- Nothing

### Removed
- Nothing

### Security
- Nothing
# Changelog

All Notable changes to `uptime-robot-api` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## NEXT - YYYY-MM-DD

### Added
- Nothing

### Deprecated
- Nothing

### Fixed
- Nothing

### Removed
- Nothing

### Security
- Nothing
44 changes: 22 additions & 22 deletions CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Contributor Code of Conduct

As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.

We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
* Other unethical or unprofessional conduct.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.

This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community in a direct capacity. Personal views, beliefs and values of individuals do not necessarily reflect those of the organisation or affiliated individuals and organisations.

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.

This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
# Contributor Code of Conduct

As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.

We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
* Other unethical or unprofessional conduct.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.

This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community in a direct capacity. Personal views, beliefs and values of individuals do not necessarily reflect those of the organisation or affiliated individuals and organisations.

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.

This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
64 changes: 32 additions & 32 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
# Contributing

Contributions are **welcome** and will be fully **credited**.

We accept contributions via Pull Requests on [Github](https://github.com/montross50/UptimeRobotApi).


## Pull Requests

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).

- **Add tests!** - Your patch won't be accepted if it doesn't have tests.

- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.

- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.

- **Create feature branches** - Don't ask us to pull from your master branch.

- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.

- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.


## Running Tests

``` bash
$ composer test
```


**Happy coding**!
# Contributing

Contributions are **welcome** and will be fully **credited**.

We accept contributions via Pull Requests on [Github](https://github.com/montross50/UptimeRobotApi).


## Pull Requests

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).

- **Add tests!** - Your patch won't be accepted if it doesn't have tests.

- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.

- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.

- **Create feature branches** - Don't ask us to pull from your master branch.

- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.

- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.


## Running Tests

``` bash
$ composer test
```


**Happy coding**!
42 changes: 21 additions & 21 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# The MIT License (MIT)

Copyright (c) 2016 Trent Schmidt <[email protected]>

> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
# The MIT License (MIT)

Copyright (c) 2016 Trent Schmidt <[email protected]>

> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
146 changes: 73 additions & 73 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
# Uptime Robot API

[![Latest Version on Packagist][ico-version]](https://packagist.org/packages/montross50/uptime-robot-api)
[![Software License][ico-license]](LICENSE.md)
[![Build Status](https://img.shields.io/travis/montross50/UptimeRobotApi.svg?branch=master&style=flat-square)](https://travis-ci.org/montross50/UptimeRobotApi)
[![Total Downloads](https://img.shields.io/packagist/dt/montross50/uptime-robot-api.svg?style=flat-square)](https://packagist.org/packages/montross50/uptime-robot-api)

API wrapper for [UptimeRobot](https://uptimerobot.com)

## Install

Via Composer

``` bash
$ composer require montross50/uptime-robot-api
```

This version (6.\*) supports Laravel 6.X only. If you need <= 5.X checkout a previous version.

## Config

Publish the config file
~~~
php artisan vendor:publish --provider="Montross50\UptimeRobotApi\UptimeRobotApiServiceProvider" --tag=config
~~~

OR use the env
~~~
UPTIMEROBOT_API_KEY // default: null
~~~
## Usage

``` php
$api = \App::make(UptimeRobotResourceInterface::class);
echo $api->getMonitors();
```

For uptime robot api reference [api](https://uptimerobot.com/api)

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

## Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

## Credits

- Trent Schmidt

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/montross50/uptime-robot-api.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/montross50/uptime-robot-api/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/montross50/uptime-robot-api.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/montross50/uptime-robot-api.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/montross50/uptime-robot-api.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/montross50/uptime-robot-api
[link-travis]: https://travis-ci.org/montross50/uptime-robot-api
[link-scrutinizer]: https://scrutinizer-ci.com/g/montross50/uptime-robot-api/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/montross50/uptime-robot-api
[link-downloads]: https://packagist.org/packages/montross50/uptime-robot-api
[link-author]: https://github.com/montross50
[link-contributors]: ../../contributors
# Uptime Robot API

[![Latest Version on Packagist][ico-version]](https://packagist.org/packages/montross50/uptime-robot-api)
[![Software License][ico-license]](LICENSE.md)
[![Build Status](https://img.shields.io/travis/montross50/UptimeRobotApi.svg?branch=master&style=flat-square)](https://travis-ci.org/montross50/UptimeRobotApi)
[![Total Downloads](https://img.shields.io/packagist/dt/montross50/uptime-robot-api.svg?style=flat-square)](https://packagist.org/packages/montross50/uptime-robot-api)

API wrapper for [UptimeRobot](https://uptimerobot.com)

## Install

Via Composer

``` bash
$ composer require montross50/uptime-robot-api
```

This version (6.\*) supports Laravel 6.X only. If you need <= 5.X checkout a previous version.

## Config

Publish the config file
~~~
php artisan vendor:publish --provider="Montross50\UptimeRobotApi\UptimeRobotApiServiceProvider" --tag=config
~~~

OR use the env
~~~
UPTIMEROBOT_API_KEY // default: null
~~~
## Usage

``` php
$api = \App::make(UptimeRobotResourceInterface::class);
echo $api->getMonitors();
```

For uptime robot api reference [api](https://uptimerobot.com/api)

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

## Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

## Credits

- Trent Schmidt

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/montross50/uptime-robot-api.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/montross50/uptime-robot-api/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/montross50/uptime-robot-api.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/montross50/uptime-robot-api.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/montross50/uptime-robot-api.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/montross50/uptime-robot-api
[link-travis]: https://travis-ci.org/montross50/uptime-robot-api
[link-scrutinizer]: https://scrutinizer-ci.com/g/montross50/uptime-robot-api/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/montross50/uptime-robot-api
[link-downloads]: https://packagist.org/packages/montross50/uptime-robot-api
[link-author]: https://github.com/montross50
[link-contributors]: ../../contributors
12 changes: 6 additions & 6 deletions api-config.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

return [
'openapi-file' => __DIR__ . '/uptime-robot-swagger.json',
'namespace' => 'Montross50\UptimeRobotApi\SDK',
'directory' => __DIR__ . '/src/SDK',
<?php

return [
'openapi-file' => __DIR__ . '/uptime-robot-swagger.json',
'namespace' => 'Montross50\UptimeRobotApi\SDK',
'directory' => __DIR__ . '/src/SDK',
];
Loading

0 comments on commit b3a69d6

Please sign in to comment.