Overview
HydePHP v1.8 is now available for download!
The HydePHP team is excited to announce version v1.8, which introduces several significant improvements to internationalization support, file handling, and metadata management. As we approach the v2 release next month, this update sets the stage for a smooth transition by incorporating important refinements and deprecating legacy methods in favor of more consistent alternatives.
Key Improvements
Enhanced Internationalization Support
One of the standout features in v1.8.0 is the improved internationalization support:
- A new slug generation helper automatically transliterates logographic characters to ASCII, making your site more accessible globally
- This ensures proper URL handling for content written in non-Latin scripts, fixing issues with logographic slug generation
Improved File Management
File handling receives significant enhancements in this release:
- A new
Filesystem::findFiles()method provides a more robust alternative to PHP's nativeglob()function - Internal usage of glob functions has been replaced with this improved file finder
- Fixed the "BuildService finding non-existent files to copy in Debian" issue
- Solved the "Undefined constant
Hyde\Foundation\Kernel\GLOB_BRACE" error affecting some systems
Expanded Metadata Support
Content management is now more flexible:
- All page types now support the
descriptionfront matter field for page metadata - Metadata handling has been standardized across different page types for a more consistent experience
- Fixed URL metadata for blog posts not using customized post output directories
Better Media Support
Media handling has been improved in v1.8.0:
- Added
webpto the list of default media extensions - The new
Hyperlinks::isRemote()helper method provides a reliable way to check if a URL is remote - Remote URL checks have been normalized so that protocol-relative URLs (
//) are consistently handled
Developer Experience Improvements
This release also includes several quality-of-life improvements for developers:
- The
cache:clearcommand is now registered for easier cache management - The
PostAuthorclass'snameproperty now falls back to theusernameproperty if not set - Improved accessibility of the heading permalinks feature
- Fixed heading permalinks button text showing in Google Search previews
- The Realtime Compiler dashboard layout has been improved for better usability
Preparing for v2
As we approach the v2 release next month, we've made several changes to ease the transition:
- The
Hydefacade now uses a@mixinannotation instead of single method annotations - The
PostAuthor::getName()method is deprecated (use$author->nameinstead) - The
FeaturedImage::isRemote()method is deprecated in favor of the newHyperlinks::isRemote()method - The
Hyde::mediaLink()method is deprecated in favor of theHyde::asset()method
Upgrade Guide
We strongly recommend upgrading your existing projects to v1.8.0 to ensure a smoother transition to the upcoming v2 release. To upgrade, simply run:
composer require hyde/framework:^1.8
Check the upgrade guide documentation for more details on the update process.
Conclusion
HydePHP v1.8.0 strengthens the foundation of the framework by improving internationalization support, file handling, and metadata management. These enhancements not only make your current projects more robust but also prepare you for the exciting new features coming in version 2 next month.
We encourage all users to upgrade to this latest version to take advantage of these improvements and ensure a seamless transition to v2 when it arrives.
As always, we welcome your feedback and contributions to make HydePHP even better. Please report any issues you find on GitHub, and share your thoughts on Twitter/X using the hashtag #HydePHP or by tagging us at @HydeFramework.
Syntax highlighting by Torchlight.dev