phone_numbers_parser 4.2.1 copy "phone_numbers_parser: ^4.2.1" to clipboard
phone_numbers_parser: ^4.2.1 copied to clipboard

Dart library for parsing phone numbers. Inspired by Google's libphonenumber and PhoneNumberKit for ios.

151
likes
120/ 140
pub points
98%
popularity

We analyzed this package 27 hours ago, and awarded it 120 pub points (of a possible 140):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

36 out of 59 API elements (61.0 %) have documentation comments.

Some symbols that are missing documentation: phone_number_parser.Code, phone_number_parser.Code.Code, phone_number_parser.PhoneNumber.findPotentialPhoneNumbers, phone_number_parser.PhoneNumber.PhoneNumber.fromJson, phone_number_parser.PhoneNumber.PhoneNumber.fromMap.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 10 issues. Showing the first 2:

INFO: The variable name 'MIN_LENGTH_COUNTRY_CALLING_CODE' isn't a lowerCamelCase identifier.

lib/src/constants/constants.dart:3:20

  ╷
3 │   static final int MIN_LENGTH_COUNTRY_CALLING_CODE = 1;
  │                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/constants/constants.dart

INFO: The variable name 'MAX_LENGTH_COUNTRY_CALLING_CODE' isn't a lowerCamelCase identifier.

lib/src/constants/constants.dart:4:20

  ╷
4 │   static final int MAX_LENGTH_COUNTRY_CALLING_CODE = 3;
  │                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/constants/constants.dart

failed
Support up-to-date dependencies
10 / 20trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
meta ^1.7.0 1.14.0 1.14.0
phone_number_metadata ^4.0.2 4.0.2 5.0.5

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^4.0.2` on phone_number_metadata does not support the stable version `5.0.0`.

Try running dart pub upgrade --major-versions phone_number_metadata to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Dart 3.3.4.

Check the analysis log for details.

151
likes
120
pub points
98%
popularity

Publisher

unverified uploader

Dart library for parsing phone numbers. Inspired by Google's libphonenumber and PhoneNumberKit for ios.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta, phone_number_metadata

More

Packages that depend on phone_numbers_parser