cakephp-tools

A CakePHP Tools plugin containing lots of useful helpers, behaviors, components, shells, ...

MIT License

Downloads
688.9K
Stars
337
Committers
22
cakephp-tools - CakePHP2.7 compatability

Published by dereuromark about 9 years ago

String needs to be CakeText.

cakephp-tools - 2.x: Minor adjustments

Published by dereuromark about 9 years ago

Make the JsonableBehavior behave more consistent regarding return values.

cakephp-tools - 2.x: Further cleanup

Published by dereuromark over 9 years ago

Shim

Use Shim 0.4.

Also shimming notBlank of CakePHP2.7 so the deprecation errors are not thrown.

Cleanup

With this release the promised cleanup is now at an important milestone.
More functionality towards a future proof 2.x app went into the only dependency, the Shim plugin.
At the same time, many sub-features of the almighty Tools plugin now are in their separate plugin repo:

The corresponding Tools plugin classes are deprecated and will be removed with one of the next releases.

Make sure you include and load the plugin and change the syntax, e.g.
$this->viewClass = 'Tools.Rss' becomes $this->viewClass = 'Feed.Rss'.

More to come in a future release (Geo, TinyAuth, ..., ?).

cakephp-tools - Init 3.x

Published by dereuromark over 9 years ago

Init CakePHP 3.x

Initialize beta release.

cakephp-tools - Use Shim 0.3 and minor adjustments

Published by dereuromark over 9 years ago

  • Shim 0.3
  • Add missing Controller files
cakephp-tools - Fix geocoding

Published by dereuromark over 9 years ago

They changed the URL.. Real heros :)

cakephp-tools - Shim 0.2.0 and cleanup

Published by dereuromark over 9 years ago

Breaking changes

  • Model::get() now takes $options instead of just $fields as 2nd argument due to (3.x) shim, it also throws a NotFoundException if no record can be found. Use record() instead if you want to just return an empty array.
cakephp-tools - PHP 5.4+

Published by dereuromark over 9 years ago

With PHP5.3 being long EOL, and PHP5.4 only months away from it ( http://php.net/supported-versions.php ) it now makes sense to raise the min requirement for all plugins to at least PHP5.4+.
All servers should long be PHP5.5+ by now anyway.

This allows the short array syntax which also makes migration between different major CakePHP versions of plugins easier.

Refactor

I also started to extract the shims mixed in this plugin into an own plugin.
So this plugin as of now has this dependency (automatically resolved via composer).

Please also adjust your App::uses() or Config statements if you used one of the following:

  • Tools.Modern hasher => Shim.Modern
  • Tools.Fallback hasher => Shim.Fallback
  • Controller/Component/Auth/PasswordHasherFactory
  • PHP5.4 password_compat shim require statement

The following functionality will be soon deprecated and will be removed with 0.9 (= replaced with standalone plugin):

  • RssView => Uses Feed plugin one soon
  • AjaxComponent/AjaxHelper => Uses Ajax plugin ones soon
  • TinyAuth => Uses Feed plugin one soon

It is a preparation towards 3.x and will slim down the actual repo size. Since it is just a matter
of a "composer require" command plus simple plugin prefix replacement, this should not be a big deal.
Please bear that in mind for the next release.

Also in this release

Bugfixes:

  • IntegrationTestCase session reset

Shims:

  • IntegrationTestCase redirect asserts for 2.5 and below.
  • IntegrationTestCase convenience methods added
cakephp-tools - More 3.0 backports to ease migration

Published by dereuromark almost 10 years ago

Backport adjustments to ease migration to 3.0:

  • IntegrationTestCase backport completed - for better controller testing
  • Flash messaging similar to 3.0 incl. Element files and params/escaping.
  • updateAll() and deleteAll() joinless variants

Fixes

  • AjaxComponent and flash messages
  • Minor other ones

Useful additions

  • Monitor headers (output)

Important

Do not use dev-master from here on, as it will now be further adjusted to Cake3 compatibility, and as such will be PHP5.4+ and CakePHP2.6+ in the next minor release.
Please lock your composer.json to a specific version, e.g. 0.7.* if you are running your apps below that requirement.

cakephp-tools - Model validation i18n and 3.0 shims

Published by dereuromark almost 10 years ago

Xmas Release

This release mainly aims to bring 2.x apps closer to 3.x.
It is compatible to 2.6, as well.

Overwriting translations

Currently, the translations in tools domain cannot be overwritten in the application. That is a core deficiency.
To overcome this I removed all .po files from the plugin itself, and only left the .pot stubs.
You need to copy needed .pot files over to your APP/Locale folder and rename them to .po.

Behaviors: Passwordable

The model validation is now also completely in tools domain. Makes things easier and does not collide with the default validation domain.
Please make sure you are using an updated tools.po file.

Shims

A few 3.0 shims have been added to ease migration towards the next major release.

  • Flash messages have been extracted from Common component: CommonComponent::flashMessage() is now FlashComponent::message() or ...::$type()
  • IntegrationTestCase backport for basic 3.0 functionality and syntax regarding the future of integration tests

Those changes are fully BC, though.

Other

Minor bugfixes resolved and a few features added.

Important

Do not use dev-master from here on, as it will now be further adjusted to Cake3 compatibility, and as such will soon be PHP5.4+.
Please lock your composer.json to a specific version, e.g. 0.6.* if you are running your apps below that requirement.

cakephp-tools - I18n refactoring

Published by dereuromark almost 10 years ago

Some complained about the plugin using the same i18n translation namespace (app) instead of its own.
Thanks to janriokrause for his great work this is now resolved. I know, it was long overdue.
Anyway, it is a breaking change. For those not using tags, but the master branch directly it will directly affect the code base.

So for those and the ones upgrading to this version please copy-and-paste the Tools plugin tools.po file to your app /Locale folder and adjust it accordingly. It will now not use any default.po translations anymore for the whole plugin.

Also contains some Geocode lib fixes and refactorings.

This will be one of the last releases of the CakePHP2.x branch, I will now focus more on the 3.x branch development.

cakephp-tools - Updated Packagist name

Published by dereuromark over 10 years ago

This release was necessary due to the unification of Packagist namespaces.
All CakePHP plugins should be named "cakephp-plugin-name".
So the former package "tools-cakephp" was renamed to "cakephp-tools".

Please make sure your composer.json requirements are updated as soon as possible:

dereuromark/cakephp-tools

The former one should still work, though - even though it is now marked "abandoned" in Packagist.

Rest assured - no further renaming will be happening.

cakephp-tools - Third release

Published by dereuromark over 10 years ago

Rewrite to a more modern approach for some modules like GeocodeLib or Passwordable Behavior.
Some 3.x shims for 2.x usage already.
So you can, for example, directly use the new PHP5.5 password_hash() functionality in PHP5.3/PHP5.4 now.

Also:
FontIcons for FormatHelper.
Late Static Binding (PHP5.3+).
Lots of cleanup.

This release is for CakePHP2.5+ applications. It is best to upgrade if you didn't do that yet.

Sidenote: A new branch for Cake3 has been added. Feel free to help porting some of the key features to the new CakePHP3 version. Some functionality we can also move into own plugins/namespaces. Just contact me if you are interested in helping out.

cakephp-tools - Second release

Published by dereuromark over 10 years ago

Some major bugs have been fixed and it is more thoroughly tested and stable now.

Also see the Wiki for a more detailed documentation on some parts.

It still needs more test coverage and some rewriting/cleanup.
See the open ticket regarding this.
Feel free to join in.

cakephp-tools - First release

Published by dereuromark about 11 years ago

First official release of the Tools plugin.

It still needs more test coverage and cleanup. Feel free to help out.
But it should be quite stable by now.