Code Monkey home page Code Monkey logo

laravel-country-state's People

Contributors

dougsisk avatar jhornitzky avatar tentus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

laravel-country-state's Issues

Underlying package abandoned

Just got this notice on my last composer update:
Package rinvex/country is abandoned, you should avoid using it. Use rinvex/countries instead.

Too much memory use

@DougSisk Ive experienced an increase x2 in memory usage. In total about 5MB just to run CountryState::getStates('US). Is this increase something that comes with the territory when not using a database or am I using your package incorrectly?

PHP 8 Support

Unfortunately the underlying country/state package does not support PHP 8 yet, which causes the composer require to fail for this package. I've created a PR and hope it's merged soon.

Where is the data stored?

Hello, can you inform if the data is stored locally in a file somewhere in the package or is it being fetched from an API?

What is the source of the data being returned?

Thank you.

The state ISO2 codes are old.

The states ISO2 codes are not updated with the new ISO2 code.
for example
Country: China
State / Prov.: Beijing Shi
The CountryState returning the code as 11, but it`s already updated to BJ
So the package is throwing exception while getting the state name by BJ.

Not working..

Something is not right...

Nothing happens on the 3rd step,
where you do
php artisan vendor:publish

Only get countries with states?

It is possible to only get the countries that have states? For example, if I just call CountryStates::getCountries() there is for example the country AW. But CountryState::getStates('AW') is empty..

Quick question

Great package!

One quick question. When I've linked a country code (for example us or gb)
to a users table.

How would I eager load the country?

Thanks a lot!

It is not working on lumen 8.X

I installed this package and add "$app->register(DougSisk\CountryState\CountryStateServiceProvider::class);" on bootstrap/app.php.
And it shows following errors.
countryState issue

php version 5.4 or 5.5

Hey, Fantastic package, thank you so much! To make your package compatible with php 5.4, I only had to change ::class to the full hard coded version 'DougSisk\CountryState\CountryStateServiceProvider'

Removed HTTP helper to load states?

Apparently, for 2.0 version, the URL country-state/get-states to fetch states for a country was removed. Is this correct? We will now have to write our own?

TODO: replace phine/country

The underlaying class used to load the countries & states, phine/country, has been marked as abandoned on Packagist. Need to research a good replacement. Most likely will be a major new release (2.0). Considering using something that has other languages besides English.

Problem installing with Laravel 6.0.1

Problem 1
- Conclusion: don't install dougsisk/laravel-country-state 2.1.1
- Conclusion: remove laravel/framework v6.0.1
- Installation request for dougsisk/laravel-country-state ^2.1 -> satisfiable by dougsisk/laravel-country-state[2.1, 2.1.1].
- Conclusion: don't install laravel/framework v6.0.1

ISO Code to full name for States and Country

I need to get Country or State full name form ISO Code

some thing llike this:-

$countryName = CountryState::getCountryName('US');

then $countryName will have value United States, and same for StateName.

Is there any way to get that here.

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.