Giter Site home page Giter Site logo

trickeyone / intl-subdivision Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 5.0 289 KB

IntlSubdivision Component - Retrieve State/Province Information

PHP 100.00%
intl-extension symfony-intl-component country php symfony intl-subdvision subdivision country-codes province provinces

intl-subdivision's People

Contributors

aspergarus avatar joycebabu avatar trickeyone avatar yaremkop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

intl-subdivision's Issues

Add support for Symfony 6+

Hello!

Could you please add support for Symfony 6.*? I tested your repo on 6.1.3 and ran the test suite without any problems. I attempted to PR the patch but was unable to.

diff --git a/composer.json b/composer.json
index 96991c2..db85804 100644
--- a/composer.json
+++ b/composer.json
@@ -12,7 +12,7 @@
     ],
     "require": {
         "php": "^7.1 || ^8.0",
-        "symfony/intl": "^4.1 || ^5.0"
+        "symfony/intl": "^4.1 || ^5.0 || ^6.0"
     },
     "require-dev": {
         "ext-xdebug": "*",
ppsmbp:intl-subdivision pps$
ppsmbp:intl-subdivision pps$ php -v
PHP 8.1.9 (cli) (built: Aug  4 2022 05:22:38) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.9, Copyright (c) Zend Technologies
    with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
ppsmbp:intl-subdivision pps$
ppsmbp:intl-subdivision pps$ composer show -i | grep -i symfony
You are using the deprecated option "installed". Only installed packages are shown by default now. The --all option can be used to show all packages.
symfony/intl                       v6.1.0  Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library
ppsmbp:intl-subdivision pps$
ppsmbp:intl-subdivision pps$
ppsmbp:intl-subdivision pps$ ./vendor/bin/phpunit
PHPUnit 9.5.22 #StandWithUkraine

...............................................................  63 / 253 ( 24%)
............................................................... 126 / 253 ( 49%)
............................................................... 189 / 253 ( 74%)
............................................................... 252 / 253 ( 99%)
.                                                               253 / 253 (100%)

Time: 00:00.196, Memory: 10.00 MB

OK (253 tests, 758 assertions)
ppsmbp:intl-subdivision pps$

License

What is the license for the package? Can you please add a LICENSE file?

Decode Error

Hi, when I get the provinces from Spain, the array is printed like this:

Captura de pantalla de 2020-11-13 11-07-04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.