Extras catalogue

modHelpers

Latest release 5 years ago (April 30, 2021).

modhelpers

  • By sergant210

About

Library of helpfull functions for MODX developers.

Installation & usage

Via Package manager.

At a glance

MODX 3 compatibility unknown. Based on our testing and community reports where available.

  • Developer sergant210
  • Latest release April 30, 2021 (5 years ago)
  • First seen in SiteDash April 30, 2021 (5 years ago)
  • License GPLv2
  • MODX support 2.7 – 100.0

Releases 7 indexed releases

Changelog
modstore.pro

4.0.0-pl

April 30, 2021

5 years ago

4.0.0-pl<br />
==============<br />
- Added function "build_tree".<br />
- Added function "reading_time".<br />
- Added function "sanitize_path".<br />
- Added function "value".<br />
- Removed function "faker".<br />
- Refactored the dump function. Now you can pass multiple agruments.<br />
- Added the ctx parameter for the login and logout functions.<br />
- Fixed the attach function of the Mailer class (#2).<br /><br />
3.7.0-pl<br />
==============<br />
- Added new function "get_exec_args".<br /><br />
3.7.0-beta<br />
==============<br />
- Added new function "exec_bg_script".<br />
- Added new function "timer".<br />
- Added "subDomain" and "subDomains" methods to the Request class.<br />
- Added "storeAsOriginal" method to the UploadedFile class.<br /><br />
3.6.0-beta<br />
==============<br />
- Added new function tag_encode.<br />
- Added new function tag_decode.<br />
- Added new function array_is_assoc.<br />
- Added new function is_odd.<br />
- Added new function is_even.<br />
- Added some methods to the Str class (used in the "string" function).<br />
- Added dd() and dump() methods to the Collection class.<br />
- Updated all composer dependencies.<br /><br />
3.5.1-beta<br />
==============<br />
- Improved compatibility with PHP 7.2.<br /><br />
3.5.0-beta<br />
==============<br />
- Added new function "string".<br />
- Added new function "str_concat".<br />
- Fixed the bug with the email function.<br /><br />
3.4.0-beta<br />
==============<br />
- Added new function "first".<br />
- Added new function "optional".<br />
- Added new function "html_attributes".<br />
- Improved the functions css() and script().<br /><br />
3.3.0-beta<br />
==============<br />
- Added the session manager.<br />
- The "session" function called without arguments returns the session manager instead of $_SESSION.<br />
- Added new function "dump".<br />
- Added new function "dd".<br />
- Added new function "has_parent".<br />
- Calling "user(true)" returns the current user.<br />
- Calling "resource(true)" returns the current resource.<br />
- Fixed a bug with caching in the "snippet" function.<br />
- Updated composer libraries.<br />
- Renamed the system setting "modhelpers_responseManager" to "modhelpers_responseManagerClass".<br /><br />
3.2.1-beta<br />
==============<br />
- Changed syntax for file elements with the relative path.<br />
- Fixed the filter method of the Request class.<br /><br />
3.2.0-beta<br />
==============<br />
- Added a new function "response".<br />
- Renamed files of the classes.<br />
- In the functions chunk() and snippet() you can specify the name with a relative path (if you use file elements).<br />
- Added file "config/config.php" to add custom system settings. Can be helpful in testing mode.<br /><br />
3.1.1-beta<br />
==============<br />
- Fixed broken compatibility with PHP 5.5.<br /><br />
3.1.0-beta<br />
==============<br />
- Added method "getCsrfToken" to the Request class.<br />
- Added method "checkCsrfToken" to the Request class.<br />
- Added method "isBot" to the Request class.<br />
- Added "bot_user_agents" system setting.<br />
- Added a new function "csrf_token".<br />
- Added a new function "csrf_field".<br />
- Added a new function "csrf_meta".<br />
- Changed the priority of the library loading.<br /><br />
3.0.1-beta<br />
==============<br />
- Fixed bug with loading the ModelColunm class.<br />
- Removed debug info.<br />
- Updated the Faker library.<br /><br />
3.0.0-beta<br />
==============<br />
- IMPORTANT! Added namespace "modHelpers" to the modHelpers' classes.<br />
- The requirement of the minimum PHP version is changed to 5.5.<br />
- Added a new function "request".<br />
- Added a new function "switch_context".<br />
- Added a new method "object" to the Object class.<br />
- Added a new method "parent" to the Object class.<br />
- Added a new method "first" to the Query class.<br />
- Added a new method "toString" to the Query class.<br />
- Added a new method "remember" to the CacheManager class.<br />
- All classes can be extended.<br /><br />
2.1.0-pl<br />
==============<br />
- Added function "is_tablet".<br />
- Added function "is_desktop".<br />
- Added function "app".<br />
- Added function "filter_data".<br />
- Added function "null_if".<br />
- Added the "relogin" parameter to the "logout" function.<br />
- Improve the "pls" function.<br />
- Improve the "parse" function.<br /><br />
2.0.0-pl<br />
==============<br />
- IMPORTANT! Changed the signature of the session() function. To put data to the session use an array.<br />
- Added function "session_pull".<br />
- Added function "default_if".<br />
- Added method "log" to the modHelpersMailer class. It can be helpful for testing.<br />
- Added method "toArray" to the modHelpersMailer class.<br />
- Added method "tpl" to the modHelpersMailer class which set a chunk as template for the email content.<br /><br />
1.4.0-beta<br />
==============<br />
- Added function "is_mobile".<br />
- Added function "array_empty".<br />
- Added function "array_notempty".<br />
- Added functions "array_trim", "array_ltrim" and "array_rtrim".<br />
- Added functions "explode_trim", "explode_ltrim" and "explode_rtrim".<br />
- Added function "echo_nl".<br />
- Added function "print_str".<br />
- Added function "print_d".<br />
- Added function "parse".<br />
- Added function "str_between".<br />
- Added function "str_limit".<br />
- Added functions - "str_starts", "str_ends", "str_contains" and "str_match".<br />
- Added the queue functionality to the mailer class.<br />
- The log functions can output objects which have the "toArray" method.<br />
- Code refactoring.<br /><br />
1.3.0-beta<br />
==============<br />
- Added function "login".<br />
- Added function "logout".<br />
- Added function "is_ajax".<br />
- Fixed some bugs.<br /><br />
1.2.0-beta<br />
==============<br />
- Added function "load_model" for custom table.<br />
- Added method "joinGroup" to the collection class for users and resources.<br />
- Added method "leaveGroup" to the collection class for users and resources.<br />
- Added method "whereIn" to the collection class for users and resources.<br />
- Added method "whereNotIn" to the collection class for users and resources.<br />
- Added method "whereLike" to the collection class for users and resources.<br />
- Added method "whereNotLike" to the collection class for users and resources.<br />
- Added method "whereIsNull" to the collection class for users and resources.<br />
- Added method "whereIsNotNull" to the collection class for users and resources.<br />
- Added class modHelperMailer which allows to use chains of methods.<br /><br />
1.1.0-beta<br />
==============<br />
- Added function "faker" that generates fake data.<br />
- Added function "img".<br />
- Added method "whereExists" to the collection class.<br />
- Added method "whereNotExists" to the collection class.<br />
- Added method "elements" to the collection class.<br /><br />
1.0.2-beta<br />
==============<br />
- Renamed "esc" function to "escape".<br />
- Added "memory" function.<br />
- Added "forward" function.<br />
- Added "orWhere" method to the collection class.<br />
- Added "each" method to the collection class.<br />
- Added "union" method to the collection class.<br />
- Added "members" method to the collection class.<br />
- Added an ability to pass a Closure to the collection functions.<br /><br />
1.0.1-beta<br />
==============<br />
- Rename the log functions.<br />
- Add withTV method to the collection class.<br /><br />
1.0.0-beta<br />
==============<br />
- Initial release.
MODX.com

4.0.0-pl

April 30, 2021

5 years ago

<p><a href="https://raw.githubusercontent.com/sergant210/modHelpers/master/core/components/modhelpers/docs/changelog.txt" title="" rel="nofollow noreferrer noopener" target="_blank">Changelog.</a></p>
MODX.com

3.7.0-pl

February 13, 2019

7 years ago

—
MODX.com

3.7.0-beta

February 11, 2019

7 years ago

—
MODX.com

3.6.0-beta

October 4, 2018

8 years ago

—
modstore.pro

3.5.1-beta

April 17, 2018

8 years ago

—
MODX.com

3.5.1-beta

April 17, 2018

8 years ago

—

We've also seen 1 unverified version of modHelpers in use, but don't list those as we've been unable of confirming they are official releases from an official source.