Skip to content

Commit

Permalink
FEAT: Client Options (#16)
Browse files Browse the repository at this point in the history
* CHORE: Project
- removed CHANGELOG.md in favor of GitHub Releases
- updated links in README.md

* FEAT: Client Options
- updated links to HTTPS

* FEAT: Client Options
- updated links to HTTPS

* DX: Code Styling and Static Analysis
- added slevomat/coding-standard
- fixed errors

* FEAT: Client Options
- added ability to specify client options
- added backwards compatibility
- removed unneeded code
- fixed tests

* FEAT: Client Options
- added test for set get options
- improved types

* FEAT: Client Options
- removed not implemented options

* FEAT: Client Options
- fixed inheritance

* FEAT: Client Options
- fixed tests

* FEAT: Client Options
- added client options validation
- added client options tests

* FEAT: Client Options
- fixed tests
  • Loading branch information
Aternus authored Jun 9, 2024
1 parent 043abbb commit 3c8b1bf
Show file tree
Hide file tree
Showing 10 changed files with 566 additions and 435 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ ij_markdown_wrap_text_inside_blockquotes = true
[{*.yaml,*.yml}]
indent_size = 2
ij_yaml_sequence_on_new_line = true

[*.json]
indent_size = 2
2 changes: 1 addition & 1 deletion .github/workflows/shared-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
- name: "Composer: Install dependencies"
run: composer install --no-progress --no-interaction
- name: "Validate Code Styling"
run: composer aternus:style
run: composer aternus:style-check
1 change: 0 additions & 1 deletion .sample.development.env
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
GEONAMES_USERNAME=''
GEONAMES_TOKEN=''
169 changes: 0 additions & 169 deletions CHANGELOG.md

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GeoNames Client

A [GeoNames](http://www.geonames.org) API Client for PHP.
A [GeoNames](https://www.geonames.org) API Client for PHP.

[![validate](https://github.com/Aternus/geonames-client/actions/workflows/validate.yml/badge.svg)](https://github.com/Aternus/geonames-client/actions/workflows/validate.yml)

Expand All @@ -19,7 +19,7 @@ Install with confidence 🛡️
## Quick Start

An overview of available API parameters for each endpoint is
[available here](http://www.geonames.org/export/ws-overview.html).
[available here](https://www.geonames.org/export/ws-overview.html).

```php
<?php
Expand Down Expand Up @@ -107,7 +107,7 @@ yourself time, bandwidth and be respectful to GeoNames for providing all that
data for free.

If you're making heavy use of the statistical data, you can subscribe to
their [Premium Data](http://www.geonames.org/products/premium-data.html) plan.
their [Premium Data](https://www.geonames.org/products/premium-data.html) plan.

## License

Expand Down
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"license": "MIT",
"scripts": {
"aternus:style": "phpcs",
"aternus:style-check": "phpcs",
"aternus:style-fix": "phpcbf",
"aternus:test": "phpunit --testdox"
},
"scripts-descriptions": {
Expand Down Expand Up @@ -45,7 +46,10 @@
},
"config": {
"preferred-install": "dist",
"optimize-autoloader": true
"optimize-autoloader": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
"php": ">=7.2.0",
Expand All @@ -57,6 +61,7 @@
"require-dev": {
"ext-xdebug": "*",
"squizlabs/php_codesniffer": "3.*",
"phpunit/phpunit": "8.*"
"phpunit/phpunit": "8.*",
"slevomat/coding-standard": "^8.15"
}
}
Loading

0 comments on commit 3c8b1bf

Please sign in to comment.