Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
285ec87
Remove duplicated list currencies
ralbear Dec 18, 2017
8ab63db
Merge pull request #45 from ralbear/patch-1
antonioribeiro Dec 18, 2017
88e6f1b
Develop a new version
antonioribeiro Dec 24, 2017
634ff26
Extends Coolection
antonioribeiro Dec 24, 2017
a21bd8d
Move all tests to /tests
antonioribeiro Dec 24, 2017
e60e1c6
Apply fixes from StyleCI
antonioribeiro Dec 24, 2017
367733d
Merge pull request #48 from antonioribeiro/analysis-q52dBr
antonioribeiro Dec 24, 2017
5eefbda
Make it compatible with PHP 7
antonioribeiro Dec 25, 2017
43d07f1
Merge branch 'v0.2.0' of https://github.com/antonioribeiro/countries …
antonioribeiro Dec 25, 2017
0fd438d
Add PHP nightly build
antonioribeiro Dec 28, 2017
ad4c681
Update list of badges
antonioribeiro Dec 28, 2017
9a60985
Add badge
antonioribeiro Dec 29, 2017
59f66fc
Refactor and test
antonioribeiro Dec 29, 2017
0db5f3c
Apply fixes from StyleCI
antonioribeiro Dec 29, 2017
9c7a5db
Merge pull request #49 from antonioribeiro/analysis-873O00
antonioribeiro Dec 29, 2017
48a458a
Send coverage to scrutinizer
antonioribeiro Dec 29, 2017
5c4c4af
Merge branch 'v0.2.0' of https://github.com/antonioribeiro/countries …
antonioribeiro Dec 29, 2017
e812275
Merge branch 'v0.2.0'
antonioribeiro Dec 29, 2017
23e1048
Add test
antonioribeiro Dec 29, 2017
7316a12
Rename wrong states files
antonioribeiro Dec 29, 2017
08be28c
Apply fixes from StyleCI
antonioribeiro Dec 29, 2017
ad7e6ef
Merge pull request #50 from antonioribeiro/analysis-q1vJW3
antonioribeiro Dec 29, 2017
bff62c1
Create hydrator macros
antonioribeiro Dec 29, 2017
4914ad9
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Dec 29, 2017
ac34c96
Apply fixes from StyleCI
antonioribeiro Dec 29, 2017
6be4a71
Merge pull request #51 from antonioribeiro/analysis-zOm40L
antonioribeiro Dec 29, 2017
47574ce
Merge pull request #31 from Artem-Schander/patch-1
antonioribeiro Dec 29, 2017
c8419b8
Merge changes
antonioribeiro Dec 29, 2017
cf37297
Merge branch '0ly-master'
antonioribeiro Dec 29, 2017
ad8f257
Allow states data overloading
antonioribeiro Dec 29, 2017
b913940
Apply fixes from StyleCI
antonioribeiro Dec 29, 2017
5a67dd2
Merge pull request #52 from antonioribeiro/analysis-qrKZx3
antonioribeiro Dec 29, 2017
00d1938
Add test for missing states on some countries
antonioribeiro Dec 29, 2017
f5caa96
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Dec 29, 2017
ae066c1
Fix wrong and missing states
antonioribeiro Dec 30, 2017
5f3f465
Add palestine's regions
antonioribeiro Dec 30, 2017
c5d7d3b
Add currency test
antonioribeiro Dec 30, 2017
b0e846b
Add test and document cities
antonioribeiro Dec 31, 2017
f0295c8
Apply fixes from StyleCI
antonioribeiro Dec 31, 2017
3c334cb
Merge pull request #53 from antonioribeiro/analysis-q1vL41
antonioribeiro Dec 31, 2017
ad95937
Fix flag
antonioribeiro Jan 3, 2018
f1266fd
Massive change to structure, data and provided services
antonioribeiro Jan 14, 2018
54c091c
Apply fixes from StyleCI
antonioribeiro Jan 14, 2018
89a441f
Merge pull request #57 from antonioribeiro/analysis-XVNGoK
antonioribeiro Jan 14, 2018
a3fc6a0
Add map
antonioribeiro Jan 14, 2018
aced289
Update readme
antonioribeiro Jan 14, 2018
88bfd28
Fix tests
antonioribeiro Jan 15, 2018
599027d
Apply fixes from StyleCI
antonioribeiro Jan 15, 2018
b9f7320
Merge pull request #58 from antonioribeiro/analysis-qJmg0Q
antonioribeiro Jan 15, 2018
5e1c45b
Tell Travis to wait longer for tests to finish
antonioribeiro Jan 16, 2018
077d6f8
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Jan 16, 2018
a67c546
Tell travis to wait a long time
antonioribeiro Jan 16, 2018
159423a
Tell travis to wait even longer
antonioribeiro Jan 16, 2018
26cfe30
Stop testing update
antonioribeiro Jan 17, 2018
f41b9e2
Apply fixes from StyleCI
antonioribeiro Jan 17, 2018
0a7eed6
Merge pull request #59 from antonioribeiro/analysis-zY9WQo
antonioribeiro Jan 17, 2018
3637d8c
Refactor a bit
antonioribeiro Jan 17, 2018
2ae9e7e
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Jan 17, 2018
9530dcb
Refactor updater
antonioribeiro Jan 17, 2018
1405581
Apply fixes from StyleCI
antonioribeiro Jan 17, 2018
f234cd4
Merge pull request #60 from antonioribeiro/analysis-8Km3wj
antonioribeiro Jan 17, 2018
a1841c7
Rename to helper
antonioribeiro Jan 17, 2018
e506b91
Merge changes
antonioribeiro Jan 17, 2018
3417495
Apply fixes from StyleCI
antonioribeiro Jan 17, 2018
74268b0
Merge pull request #61 from antonioribeiro/analysis-zY9KrG
antonioribeiro Jan 17, 2018
d86a8b0
Add timezone times hydrator
antonioribeiro Jan 17, 2018
714eb1f
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Jan 17, 2018
76682b9
Apply fixes from StyleCI
antonioribeiro Jan 17, 2018
646f85b
Merge pull request #62 from antonioribeiro/analysis-XVNYGw
antonioribeiro Jan 17, 2018
819b8ea
Upgrade Coollection
antonioribeiro Jan 22, 2018
f1fdc1e
Ignore updater
antonioribeiro Jan 22, 2018
47edb33
Update new data
antonioribeiro Jan 22, 2018
89ca447
Add info
antonioribeiro Jan 22, 2018
07e1e8a
Make it PHP agnostic
antonioribeiro Jan 22, 2018
2562f25
Update changelog
antonioribeiro Jan 22, 2018
91a373d
Merge changes
antonioribeiro Jan 22, 2018
6da19db
Apply fixes from StyleCI
antonioribeiro Jan 22, 2018
07f19eb
Merge pull request #64 from antonioribeiro/analysis-XlLo4O
antonioribeiro Jan 22, 2018
373ccc8
gs
antonioribeiro Jan 22, 2018
0db619c
Fix dependencies list
antonioribeiro Jan 22, 2018
0f68ec4
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Jan 22, 2018
83f38d2
Fix dependencies
antonioribeiro Jan 22, 2018
ea4e2ef
Add cs fixer config
antonioribeiro Jan 23, 2018
d4d7269
Add cs fixer config
antonioribeiro Jan 23, 2018
6b94751
Fix style
antonioribeiro Jan 23, 2018
db4d42d
Fix import
antonioribeiro Jan 23, 2018
e86ade0
Fix import
antonioribeiro Jan 23, 2018
6b67f6c
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Jan 23, 2018
5070ec4
Apply fixes from StyleCI
antonioribeiro Jan 23, 2018
0c81a24
Merge pull request #65 from antonioribeiro/analysis-z4o6gn
antonioribeiro Jan 23, 2018
740ec01
Update readme
antonioribeiro Jan 24, 2018
56e397e
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Jan 24, 2018
eff2025
Remove laravel stuff
antonioribeiro Jan 24, 2018
cef9a92
Show info items count
antonioribeiro Jan 24, 2018
8a4da13
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Jan 24, 2018
3f95d8e
Fix composer.json
antonioribeiro Jan 24, 2018
6284bcc
Change to IlluminateExtracted
antonioribeiro Jan 24, 2018
937b9be
Use cache contract
antonioribeiro Jan 24, 2018
471f2f6
Change dir
antonioribeiro Jan 24, 2018
07839ac
Fix plural
antonioribeiro Jan 24, 2018
a05fe10
Fix typo
antonioribeiro Jan 24, 2018
9d8923a
Add SVG path to flags
antonioribeiro Jan 25, 2018
9d63ece
Fix test
antonioribeiro Jan 25, 2018
a9dd672
Test pluck
antonioribeiro Jan 28, 2018
00f3553
Change coollection version
antonioribeiro Jan 31, 2018
340d0dc
Use semver
antonioribeiro Jan 31, 2018
21c4f94
Remove carbon
antonioribeiro Jan 31, 2018
028b787
Fail test fast
antonioribeiro Jan 31, 2018
e8a9073
Fix test
antonioribeiro Jan 31, 2018
2603679
Move method
antonioribeiro Jan 31, 2018
1b7c14c
Add a currency fixer for missing data
antonioribeiro Jan 31, 2018
3d1661a
Apply fixes from StyleCI
antonioribeiro Jan 31, 2018
3fd08db
Merge pull request #69 from antonioribeiro/analysis-87o4Zk
antonioribeiro Jan 31, 2018
6e65b63
Use the proper class
antonioribeiro Jan 31, 2018
d6ba2c7
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Jan 31, 2018
c968019
Add support for Laravel 5.6 and Symfony 4
antonioribeiro Feb 10, 2018
518db69
Apply fixes from StyleCI
antonioribeiro Feb 10, 2018
b400467
Merge pull request #73 from antonioribeiro/analysis-qgwKKG
antonioribeiro Feb 10, 2018
e7b8a4b
Fix readme
antonioribeiro Feb 14, 2018
8614713
Merge commit 'e7b8a4b'
antonioribeiro Feb 14, 2018
cb15e61
Improve style
antonioribeiro Feb 17, 2018
64b054c
Merge commit 'cb15e61'
antonioribeiro Feb 17, 2018
4744154
Use config
antonioribeiro Feb 17, 2018
d04eaa8
Update changelog
antonioribeiro Feb 17, 2018
c7f662d
Remove Laravel info
antonioribeiro Feb 17, 2018
47efa01
Remove return
antonioribeiro Feb 18, 2018
c3f3249
Alow user to disable cache
antonioribeiro Feb 18, 2018
b651cc8
Apply fixes from StyleCI
antonioribeiro Feb 18, 2018
f2ed00a
Merge pull request #78 from antonioribeiro/analysis-8npoQv
antonioribeiro Feb 18, 2018
07b62ee
Improve performance
antonioribeiro Feb 19, 2018
f8adbda
Apply fixes from StyleCI
antonioribeiro Feb 19, 2018
61832e5
Merge pull request #79 from antonioribeiro/analysis-XVZxG6
antonioribeiro Feb 19, 2018
6e598ce
Run with xdebug only in PHP 7.2
antonioribeiro Feb 19, 2018
fba729b
Remove some ties
antonioribeiro Feb 19, 2018
e451d07
Apply fixes from StyleCI
antonioribeiro Feb 19, 2018
10ab072
Merge pull request #80 from antonioribeiro/analysis-8bByal
antonioribeiro Feb 19, 2018
8a3fa90
Fix condition
antonioribeiro Feb 19, 2018
1d031f6
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Feb 19, 2018
ce45416
Fix for nightly
antonioribeiro Feb 19, 2018
34b7bf5
Use more memory
antonioribeiro Feb 20, 2018
df161e5
Update data
antonioribeiro Feb 20, 2018
ba582e2
Update docs files
antonioribeiro Feb 20, 2018
6420515
Add shapefile loader
antonioribeiro Feb 20, 2018
eccb704
Auto hydrate flags
antonioribeiro Feb 20, 2018
ae23ee1
Test a bit more
antonioribeiro Feb 20, 2018
f2ab9d0
Update upgrader
antonioribeiro Feb 20, 2018
9e81bbc
Apply fixes from StyleCI
antonioribeiro Feb 20, 2018
79bbce0
Merge pull request #81 from antonioribeiro/analysis-zDBBML
antonioribeiro Feb 20, 2018
f05841f
Remove voids
antonioribeiro Feb 20, 2018
abd19f9
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Feb 20, 2018
d78902a
Add info about timezones
antonioribeiro Feb 23, 2018
f1b8662
Remove some Laravel info
antonioribeiro Mar 9, 2018
ef2b937
Merge changes
antonioribeiro Mar 9, 2018
b474ede
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Mar 9, 2018
d376926
Remove all facades
antonioribeiro Mar 9, 2018
3e45619
Clarify
antonioribeiro Mar 9, 2018
d2e8330
Update Helper.php
amenk Mar 13, 2018
1a4ce2f
Merge pull request #89 from amenk/patch-1
antonioribeiro Mar 13, 2018
9e01e8f
Update changelog
antonioribeiro Mar 13, 2018
028b295
Remove example
antonioribeiro Mar 13, 2018
7410bc3
Move cache service to the proper directory
antonioribeiro Mar 21, 2018
cb8c8cd
Commit composer.lock
antonioribeiro Mar 21, 2018
d1901c1
Apply fixes from StyleCI
antonioribeiro Mar 21, 2018
420c4ec
Merge pull request #92 from antonioribeiro/analysis-z31Y0Y
antonioribeiro Mar 21, 2018
3c42fcf
Update countries
antonioribeiro Mar 21, 2018
7f4224a
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Mar 21, 2018
4bcf682
flag-icon-css ISO 3166-1-alpha-2 code
olimortimer Mar 31, 2018
7669a33
Code issue
olimortimer Mar 31, 2018
0bc8478
Update README.md
vortechron Jun 19, 2018
c06dd7b
Fix flag-icon
antonioribeiro Aug 19, 2018
439d18c
Merge branch 'master' of https://github.com/antonioribeiro/countries
antonioribeiro Aug 19, 2018
7518db8
Reformat json
antonioribeiro Aug 19, 2018
30084cc
Update cache placement
antonioribeiro Aug 19, 2018
c4eba2a
Add info about flags
antonioribeiro Aug 19, 2018
9d300c5
Tweak wording
antonioribeiro Aug 19, 2018
d87d7b9
Tweak wording a bit more
antonioribeiro Aug 19, 2018
626e832
Update data
antonioribeiro Aug 19, 2018
df4a00d
Move coollection up
antonioribeiro Aug 19, 2018
1ae139e
Merge pull request #102 from vortechron/patch-1
antonioribeiro Sep 28, 2018
f1e73b3
Merge branch 'master' into patch-1
antonioribeiro Sep 28, 2018
cb84ee3
Merge pull request #95 from olimortimer/patch-1
antonioribeiro Sep 28, 2018
26290e8
Redo olimortimer change
antonioribeiro Sep 28, 2018
3888b81
Minor code tweaks
Oct 5, 2018
9de2813
Minor code tweaks
Oct 5, 2018
7c9303b
Add 7.3
antonioribeiro Mar 21, 2019
0fa3150
Upgrade countries
antonioribeiro May 5, 2019
45f10dd
Merge remote-tracking branch 'refs/remotes/origin/master'
antonioribeiro May 5, 2019
ce2a0a9
Fix a typo
marclaporte May 28, 2019
8384a90
Merge pull request #117 from marclaporte/patch-1
antonioribeiro Sep 10, 2019
fe66719
Apply fixes from StyleCI
antonioribeiro Sep 10, 2019
e8f639d
Merge pull request #126 from antonioribeiro/analysis-8mJGxD
antonioribeiro Sep 10, 2019
b3a4733
Merge pull request #109 from kalessil/master
antonioribeiro Sep 10, 2019
14b8c7f
Fix curencies hydrator
antonioribeiro Sep 10, 2019
944c9ca
Update all countries datasets
antonioribeiro Sep 11, 2019
da79261
Update packages
antonioribeiro Sep 12, 2019
ae0db40
Fix for Laravel 6
antonioribeiro Sep 12, 2019
280a9ad
Merge changes
antonioribeiro Sep 12, 2019
d6ccd36
Upgrade coolection
antonioribeiro Sep 12, 2019
fe980b4
Fix tests
antonioribeiro Sep 12, 2019
b1076eb
Fix test
antonioribeiro Sep 12, 2019
dd8ca6b
Fix helpers
antonioribeiro Sep 12, 2019
ed1ab15
Fix helpers
antonioribeiro Sep 12, 2019
ba7b5e6
Fix helpers
antonioribeiro Sep 12, 2019
33feddc
Update timezones
antonioribeiro Sep 12, 2019
9dc22e9
Update changelog and disable xdebug for PHP 7.4 for now
antonioribeiro Sep 12, 2019
03ad7b3
Try to fix nette:finder for PHP 7.4
antonioribeiro Sep 12, 2019
24ebaa7
Fix travis
antonioribeiro Sep 12, 2019
ab1e0c9
Fix bash
antonioribeiro Sep 12, 2019
f815d5f
Disable PHP 7.4 testing
antonioribeiro Sep 12, 2019
c398f7a
Update some packages
antonioribeiro Sep 24, 2019
5af67b5
Use string class
antonioribeiro Sep 24, 2019
af3e865
Merge changes
antonioribeiro Sep 24, 2019
df66bb9
Add more PHPs to stack
antonioribeiro Sep 24, 2019
4c00f9a
Remove PHP 7.0 from stack
antonioribeiro Sep 24, 2019
9a8db06
fix mistakes and typos
amirasyraf Jan 4, 2020
a42f989
add to semicolon to each line of code for consistency
amirasyraf Jan 4, 2020
0e82bef
Update composer dependencies
Feb 3, 2020
4febaf7
Merge pull request #141 from mwi-gofore/master
antonioribeiro Mar 29, 2020
bcee685
Apply fixes from StyleCI
antonioribeiro Mar 29, 2020
7956321
Merge pull request #150 from antonioribeiro/analysis-YjDggv
antonioribeiro Mar 29, 2020
0f07c11
Update readme
Mar 29, 2020
405b6ac
test against php 7.4 - remove prefix 'snapshot'
Apr 7, 2020
3e883cf
Merge pull request #151 from sergiy-petrov/patch-1
antonioribeiro Apr 23, 2020
09b81b0
Merge pull request #137 from amirasyraf/master
antonioribeiro Apr 23, 2020
128f40b
Currency should be plural
ChrisThompsonTLDR Jun 10, 2020
e2ec291
Merge pull request #155 from ChrisThompsonTLDR/master
antonioribeiro Sep 19, 2020
557167b
Apply fixes from StyleCI
antonioribeiro Sep 19, 2020
98c0490
Merge pull request #159 from antonioribeiro/analysis-OMRgYP
antonioribeiro Sep 19, 2020
84a8cb0
Update countries JSON files
antonioribeiro Sep 19, 2020
91a860a
Fix flag-icon (#1)
reinierkors Sep 23, 2020
49b71b5
Merge pull request #160 from reinierkors/master
antonioribeiro Sep 27, 2020
1a7bf5c
Add update instructions
antonioribeiro Oct 28, 2020
816e3fc
Add copyright reference
antonioribeiro Oct 28, 2020
b20491e
Fix link
antonioribeiro Oct 28, 2020
4283ad5
updated class Collection function whereISO4217() to use currencies in…
Magentron Jul 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/vendor
/coverage
/tmp
/src/data/tmp
/src/data/third-party/
composer.phar
composer.lock

.idea

13 changes: 13 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
;

return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
])
->setFinder($finder)
;
25 changes: 25 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
checks:
php:
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true

filter:
paths: [src/*]
excluded_paths: ["tests/*"]

coding_style:
php: { }

tools:
external_code_coverage: true
2 changes: 0 additions & 2 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
preset: laravel

linting: true
30 changes: 25 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,39 @@
language: php

php:
- 7.0
# - 7.0
- 7.1
- 7.2
- 7.3
- 7.4
# - nightly

env:
matrix:
- COMPOSER_FLAGS=""

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

## Cache composer
cache:
directories:
- $HOME/.composer/cache

env:
matrix:
- COMPOSER_FLAGS=""

## Disable Xdebug on all PHP versions except those ones below
before_script:
- '[[ "$TRAVIS_PHP_VERSION" == "7.3" || "$TRAVIS_PHP_VERSION" == "nightly" || "$TRAVIS_PHP_VERSION" == "7.4snapshot" ]] || phpenv config-rm xdebug.ini'
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
# - '[[ "$TRAVIS_PHP_VERSION" == "7.4snapshot" ]] && composer require nette/finder:"dev-master" --no-interaction --prefer-dist || echo done'

script:
- travis_wait vendor/bin/phpunit --coverage-clover=coverage.clover

after_script:
- |
if [[ "$TRAVIS_PHP_VERSION" == '7.2' ]]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi
27 changes: 26 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## 0.7.0 - 2019-09-19
### Updated
- Strings, arrays and collection helpers
### Removed
- PHP 7.0 support

## 0.6.0 - 2018-08-19
### Fixed
- flag-icon tag
### Changed
- Countries service directory

## 0.5.7 - 2018-03-13
### Fixed
- Missing Exception class

## 0.5.5 - 2018-02-17
### Changed
- Removed hard coded cache set to 10 minutes

## 0.5.0 - 2018-01-22
### Changed
- Package is now PHP agnostic
- Laravel version is now pragmarx/countries-laravel

## 0.1.0 - 2017-02-13
### Added
- First version
Expand All @@ -9,4 +34,4 @@
- Validation rules
- Language filtering
- Currency filtering
- Dynamic where calls
- Dynamic where calls
Loading