dereuromark / cakephp-data
A CakePHP plugin containing lots of useful and reusable data containers
Installs: 12 361
Dependents: 1
Suggesters: 0
Security: 0
Stars: 12
Watchers: 8
Forks: 6
Open Issues: 1
Type:cakephp-plugin
Requires
- php: >=8.1
- cakephp/cakephp: ^5.0.1
- dereuromark/cakephp-shim: ^3.1.0
- dereuromark/cakephp-tools: ^3.0.0
Requires (Dev)
- cakephp/migrations: ^4.0.1
- dereuromark/cakephp-geo: ^3.0.0
- fig-r/psr2r-sniffer: dev-next
- friendsofcake/search: ^7.0.0
- phpunit/phpunit: ^10.2
- willdurand/geocoder: ^4.2.2
- yangqi/htmldom: dev-master
README
A CakePHP plugin containing several useful data models that can be used in many projects.
Note: This branch requires CakePHP 5.0+. See version map for details.
Features
- Continents => Countries => States => Counties => Districts => Cities
- Postal Codes
- Addresses
- MimeTypes and MimeTypeImages
- Languages (optionally with language flags)
- Currencies (with converter)
Both schema and data.
Countries also can have country flags (images).
Demo
See https://sandbox.dereuromark.de/export
How to include
Installing the plugin is pretty much as with every other CakePHP Plugin.
composer require dereuromark/cakephp-data
And then load your plugin.
Decide on what part of the plugin you need and make sure you executed the migrations for the database tables. It is recommended to just copy the migration files over to project level.
That's it. It should be up and running.
Possible Dependencies
- Tools plugin
- FOC Search plugin (optional, if you want basic filtering)
Disclaimer
Use at your own risk. Please provide any fixes or enhancements via issue or better pull request. Some classes are still from 1.2 (and are merely upgraded to 2.x/3.x) and might still need some serious refactoring. If you are able to help on that one, that would be awesome.
TODOs
- Better test coverage