Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Safe Laravel Package

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.

View on GitHub
Deep Wiki
Context7
v3.4.0

What's Changed

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)

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.3.0...v3.4.0

v3.3.0

What's Changed

Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.2.0...v3.3.0

v3.2.0

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.1.1...v3.2.0

v3.1.1

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.1.0...v3.1.1

v3.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.0.2...v3.0.3

v3.0.2

What's Changed

Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.0.1...v3.0.2

v3.0.1

What's Changed (Externally visible)

What's Changed (Internals)

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v3.0.0...v3.0.1

v3.0.0

What's Changed (tl;dr)

  • Compatibility with PHP 8.4 - no more syntax deprecation warnings
  • Dropped support for EOL'ed PHP versions - PHP 8.1 is the new minimum
  • Separate wrappers generated for each PHP version, to make sure that the wrappers match the standard library whether you're using 8.1 or 8.4
  • Lots more unsafe functions are detected (including those which return -1 on error)
  • Type hints should be more expansive and more accurate
  • Internals cleaned up and documentation added, to make the project easier to contribute to

What's Changed (Full)

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.5.0...v3.0.0

v2.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.4.0...v2.5.0

v2.4.0

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.3.1...v2.4.0

v2.3.1

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.3.0...v2.3.1

v2.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.2.3...v2.3.0

v2.2.3

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.2.2...v2.2.3

v2.2.2

What's Changed

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.2.1...v2.2.2

v2.2.1

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.2.0...v2.2.1

v2.2.0

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.1.4...v2.2.0

v2.2-alpha

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

v2.1.4

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.1.3...v2.1.4

v2.1.3

What's Changed

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.1.2...v2.1.3

v2.1.2
v2.1.1
v2.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.0.2...v2.1.0

v2.0.1

What's Changed

Full Changelog: https://github.com/thecodingmachine/safe/compare/2.0...v2.0.1

2.0

This release finally brings PHP8 support! 🎉🎉🎉

If you find any issues, please report them and feel free to contribute your own PRs as well!

2.0.0-alpha.3

What's Changed

Full Changelog: https://github.com/thecodingmachine/safe/compare/2.0.0-alpha.2...2.0.0-alpha.3

2.0.0-alpha.2

What's Changed

New Contributors

Special thanks

  • Special thanks to @Duroth for checking which generated files require fixes

Full Changelog: https://github.com/thecodingmachine/safe/compare/2.0.0-alpha.1...2.0.0-alpha.2

2.0.0-alpha.1

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!

v1.3.3

Changelog:

  • Fixed a bug with socket_write
  • Updated the readme
v1.3.2

Changelog:

  • added the date and gmdate functions ( #246 )
  • imap_fetchstructure, imap_mail_compose and imap_sort were automatically added because of the updated documentation.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport