thecodingmachine/safe
Safe PHP functions: a drop-in wrapper around PHP’s native functions that converts warnings and notices into exceptions, improving type safety and error handling. Includes namespaced alternatives for many standard functions with IDE/static analysis support.
The major things are the first three changes - removing and deduplicating content so that new versions of PHP can be supported with relatively small increases to the total package size (and the corresponding addition of initial php8.6 support)
passthru on PHP 8.1 by @silasjoisten in https://github.com/thecodingmachine/safe/pull/691hash_file() and hash_hmac_file() functions by @cedric-anne in https://github.com/thecodingmachine/safe/pull/694download-docs command by @silasjoisten in https://github.com/thecodingmachine/safe/pull/697ftp_raw by @silasjoisten in https://github.com/thecodingmachine/safe/pull/693composer.json by @silasjoisten in https://github.com/thecodingmachine/safe/pull/698scan-objects command by @silasjoisten in https://github.com/thecodingmachine/safe/pull/699Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.3.0...v3.4.0
mktime() on PHP 8.2 and 8.3 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/670long2ip() that is actually safe by @cedric-anne in https://github.com/thecodingmachine/safe/pull/671array_combine() on PHP 8.1 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/672array_flip() on PHP 8.1 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/673array_replace() / array_replace_recursive() on PHP 8.1 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/674gmp_random_seed() on PHP 8.1 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/677hash_hkdf() on PHP 8.1 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/678sleep() on PHP 8.1 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/679imagecolorsforindex() on PHP 8.1 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/680mysqli_get_client_stats() on PHP 8.1 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/681stream_socket_get_name() on PHP 8.1 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/683apache_request_headers()/apache_response_headers() on PHP < 8.4 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/684shuffle() on PHP < 8.4 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/685curl_share_errno() on PHP < 8.4 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/686date_parse() on PHP < 8.4 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/688date_sun_info() on PHP < 8.4 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/689openssl_random_pseudo_bytes() on PHP 8.1 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/682date_create() on PHP < 8.4 by @cedric-anne in https://github.com/thecodingmachine/safe/pull/687Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.2.0...v3.3.0
pack() function by @cedric-anne in https://github.com/thecodingmachine/safe/pull/664gmmktime()/mktime() on PHP 8.4+ by @cedric-anne in https://github.com/thecodingmachine/safe/pull/667array_walk_recursive() function by @cedric-anne in https://github.com/thecodingmachine/safe/pull/666getallheaders() function by @cedric-anne in https://github.com/thecodingmachine/safe/pull/668imagesx()/imagesy() functions by @cedric-anne in https://github.com/thecodingmachine/safe/pull/669date() function by @cedric-anne in https://github.com/thecodingmachine/safe/pull/665Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.1.1...v3.2.0
openssl_random_pseudo_bytes always returns string (closes #654) by @mvhirsch in https://github.com/thecodingmachine/safe/pull/658Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.1.0...v3.1.1
Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.0.2...v3.0.3
Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.0.1...v3.0.2
pg_copy_from) by @shish in https://github.com/thecodingmachine/safe/pull/632Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.0.0...v3.0.1
-1 on error)json_last_error check when JSON_THROW_ON_ERROR flag is set in json_decode by @marmichalski in https://github.com/thecodingmachine/safe/pull/451non-empty-string / non-falsey-string in docblocks, fixes #398 by @shish in https://github.com/thecodingmachine/safe/pull/577finfo, despite being lowercase, is a class by @shish in https://github.com/thecodingmachine/safe/pull/615Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.5.0...v3.0.0
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.4.0...v2.5.0
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.3.1...v2.4.0
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.3.0...v2.3.1
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.2.3...v2.3.0
export-ignore additional files by @TimWolla in https://github.com/thecodingmachine/safe/pull/371Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.2.2...v2.2.3
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.2.1...v2.2.2
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.2.0...v2.2.1
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.1.4...v2.2.0
This is an alpha to test @j3j5 new autoloading structure to try to fix #235 once and for all.
This shouldn't break anything but better safe than sorry
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.1.3...v2.1.4
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.1.2...v2.1.3
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.1.1...v2.1.2
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.1.0...v2.1.1
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.0.2...v2.1.0
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.0.1...v2.0.2
Full Changelog: https://github.com/thecodingmachine/safe/compare/2.0...v2.0.1
This release finally brings PHP8 support! 🎉🎉🎉
If you find any issues, please report them and feel free to contribute your own PRs as well!
Full Changelog: https://github.com/thecodingmachine/safe/compare/2.0.0-alpha.2...2.0.0-alpha.3
Full Changelog: https://github.com/thecodingmachine/safe/compare/2.0.0-alpha.1...2.0.0-alpha.2
This release adds support for PHP8 and drops support for PHP7.x and lower.
Give it a try and let us know through github issues if you encounter any problems!
Changelog:
Changelog:
How can I help you explore Laravel packages today?