<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged hydephp</title>
<link>https://coderlegion.com/tag/hydephp</link>
<description>Powered by Question2Answer</description>
<item>
<title>Tired of WordPress drama? Try HydePHP, a content-first static site generator that you will love</title>
<link>https://coderlegion.com/444/tired-wordpress-drama-try-hydephp-content-first-static-site-generator-that-you-will-love</link>
<description>&lt;h3 id=&quot;the-wordpress-drama&quot;&gt;The WordPress Drama&lt;/h3&gt;
&lt;p&gt;As the WordPress ecosystem faces unprecedented turmoil, many developers and site owners are reconsidering their platform choices. The recent conflict between WordPress co-founder Matt Mullenweg and WP Engine has highlighted issues of control, contribution, and commercialization within the WordPress community. This drama serves as a wake-up call: it's time to explore alternatives that prioritize simplicity, independence, and developer empowerment.&lt;/p&gt;
&lt;h3 id=&quot;enter-hydephp-a-breath-of-fresh-air&quot;&gt;Enter HydePHP: A Breath of Fresh Air&lt;/h3&gt;
&lt;p&gt;HydePHP emerges as a compelling alternative for those seeking to break free from the complexities and controversies of WordPress. Let's explore why HydePHP might be the perfect solution for your next project.&lt;/p&gt;
&lt;h4 id=&quot;1-content-first-philosophy&quot;&gt;1. Content-First Philosophy&lt;/h4&gt;
&lt;p&gt;HydePHP embraces a content-first approach, allowing you to focus on what matters most: your writing. With Markdown support, you can create blog posts, documentation pages, and static HTML pages without getting bogged down in complex markup or plugin configurations.&lt;/p&gt;
&lt;h4 id=&quot;2-simplicity-without-sacrifice&quot;&gt;2. Simplicity Without Sacrifice&lt;/h4&gt;
&lt;p&gt;Unlike WordPress's steep learning curve and plugin dependencies, HydePHP offers a streamlined development experience. It combines a framework, static site builder, and starter template into one cohesive package. This means you can get started quickly without sacrificing the ability to customize your site as your needs evolve.&lt;/p&gt;
&lt;h4 id=&quot;3-lightning-fast-performance&quot;&gt;3. Lightning-Fast Performance&lt;/h4&gt;
&lt;p&gt;As a static site generator, HydePHP produces websites that are inherently fast and scalable. By eliminating the need for databases and server-side rendering, your site can be served from global CDNs, resulting in blazing-fast load times and improved user experience.&lt;/p&gt;
&lt;h4 id=&quot;4-enhanced-security-and-stability&quot;&gt;4. Enhanced Security and Stability&lt;/h4&gt;
&lt;p&gt;With no database to maintain or complex backend to secure, HydePHP sites are significantly less vulnerable to common web attacks. This not only improves your site's security but also reduces the ongoing maintenance burden.&lt;/p&gt;
&lt;h4 id=&quot;5-cost-effective-hosting&quot;&gt;5. Cost-Effective Hosting&lt;/h4&gt;
&lt;p&gt;Static sites are incredibly cheap to host, with many providers offering free options. This can lead to substantial cost savings compared to traditional WordPress hosting, especially as your site scales.&lt;/p&gt;
&lt;h4 id=&quot;6-developer-friendly-environment&quot;&gt;6. Developer-Friendly Environment&lt;/h4&gt;
&lt;p&gt;Built on Laravel and using familiar tools like Blade and TailwindCSS, HydePHP provides a modern, enjoyable development experience. It strikes a balance between ease of use for beginners and flexibility for advanced users.&lt;/p&gt;
&lt;h4 id=&quot;7-no-vendor-lock-in&quot;&gt;7. No Vendor Lock-In&lt;/h4&gt;
&lt;p&gt;Unlike the WordPress ecosystem, where your content can become entangled with themes and plugins, HydePHP keeps your content separate and portable. This gives you the freedom to evolve your site or even migrate to a different platform in the future.&lt;/p&gt;
&lt;h3 id=&quot;making-the-switch&quot;&gt;Making the Switch&lt;/h3&gt;
&lt;p&gt;Transitioning from WordPress to HydePHP is straightforward:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install HydePHP using Composer: &lt;code&gt;composer create-project hyde/hyde&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Migrate your content to Markdown files&lt;/li&gt;
&lt;li&gt;Customize your templates and styles as needed&lt;/li&gt;
&lt;li&gt;Build and deploy your static site&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;As the WordPress drama unfolds, it's clear that developers and content creators need alternatives that offer simplicity, speed, and independence. HydePHP provides all these benefits while maintaining the flexibility to grow with your needs.&lt;/p&gt;
&lt;p&gt;By choosing HydePHP, you're not just selecting a tool; you're embracing a philosophy of content-first development, free from the complexities and controversies that can plague larger ecosystems. Give HydePHP a try for your next project, and experience the joy of building websites without the drama.&lt;/p&gt;
&lt;p&gt;Ready to get started? Check out the &lt;a rel=&quot;nofollow&quot; href=&quot;https://hydephp.com/docs&quot;&gt;HydePHP documentation&lt;/a&gt; and join a community focused on empowering developers and content creators alike.&lt;/p&gt;
</description>
<category>Coding</category>
<guid isPermaLink="true">https://coderlegion.com/444/tired-wordpress-drama-try-hydephp-content-first-static-site-generator-that-you-will-love</guid>
<pubDate>Sun, 20 Apr 2025 10:44:30 +0000</pubDate>
</item>
<item>
<title>The Tale of Zoe: From Doodler to Best-Seller with HydePHP - (part 2)</title>
<link>https://coderlegion.com/891/the-tale-of-zoe-from-doodler-to-best-seller-with-hydephp-part-2</link>
<description>&lt;h4 id=&quot;step-2-the-magical-layout-building-the-perfect-landing-page&quot;&gt;Step 2: The Magical Layout – Building the Perfect Landing Page&lt;/h4&gt;
&lt;p&gt;The Hyde Wizard raised his staff high and proclaimed, “Every grand creation must rest upon a solid foundation. To bring your vision to life, we must weave the magic of layouts into your site!”  &lt;/p&gt;
&lt;p&gt;He gestured toward the glowing code in the air. “These enchanted layouts, provided by the &lt;strong&gt;HydePHP Layouts Manager&lt;/strong&gt;, enable your blog feed to seamlessly integrate with customizable components and themes. By applying the &lt;strong&gt;@extends&lt;/strong&gt; directive, your page will inherit the full power of this magic.”  &lt;/p&gt;
&lt;p&gt;With a swirl of his staff, glowing runes etched themselves into the air. Zoe copied them into her file, replacing the old content of her &lt;code&gt;index.blade.php&lt;/code&gt;.  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@php($title = 'Zoe Blog')
@extends(config('hyde-layouts-manager.layouts.' . config('hyde-layouts-manager.default_layout') . '.app', 'hyde::layouts.app'))
@section('content')
 
    &amp;lt;main id=&quot;content&quot; class=&quot;mx-auto max-w-7xl py-12 px-8&quot;&amp;gt;
        &amp;lt;header class=&quot;lg:mb-12 xl:mb-16&quot;&amp;gt;
            &amp;lt;h1 class=&quot;text-3xl text-left leading-10 tracking-tight font-extrabold sm:leading-none mb-8 md:mb-12 md:text-4xl md:text-center lg:text-5xl text-gray-700 dark:text-gray-200&quot;&amp;gt;
            Zoe's Journey&amp;lt;/h1&amp;gt;
        &amp;lt;/header&amp;gt;
     
        &amp;lt;div id=&quot;post-feed&quot; class=&quot;max-w-3xl mx-auto&quot;&amp;gt;
            @include('hyde-layouts-manager::layouts.'.config('hyde-layouts-manager.default_layout').'.posts.blog-post-feed')
        &amp;lt;/div&amp;gt;
    &amp;lt;/main&amp;gt;
 
@endsection
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;“These lines,” he explained, “tie your page to the power of the layouts defined in the Layouts Manager. The &lt;code&gt;@extends&lt;/code&gt; directive ensures your page inherits the enchanted scaffolding, while the &lt;code&gt;@include&lt;/code&gt; spell draws in the blog post feed with all the benefits of your chosen theme.”  &lt;/p&gt;
&lt;p&gt;Zoe’s eyes widened as she read through the lines. &quot;This means my Blog page is not only beautiful but fully integrated with the magical components and styles we've chosen!”  &lt;/p&gt;
&lt;p&gt;“Indeed,” the wizard affirmed, his voice warm with encouragement. “Your blog feed, once simple and unadorned, is now imbued with all the grace and flexibility the &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/melasistema/hydephp-layouts-manager&quot;&gt;HydePHP Layouts Manager&lt;/a&gt; has to offer.”  &lt;/p&gt;
&lt;p&gt;As Zoe absorbed this wisdom, the wizard’s eyes twinkled. “But wait, my dear, you’ve come prepared for this journey, haven’t you?”  &lt;/p&gt;
&lt;p&gt;Zoe nodded, a parchment unfurling in her hands. It was a vibrant display of her doodles—whimsical characters, enchanting landscapes, and magical creatures from her beloved book, Zoe and the Doodling World.  &lt;/p&gt;
&lt;p&gt;The wizard gasped in delight. “Oh, Zoe! You truly are ready for this path. But our mission is not yet complete.” His voice took on a deeper, more focused tone. “While the blog section with its announcement is crucial, what you need is a true landing page—a magical portal where visitors will feel invited into your world and can be guided to your books with ease.”  &lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;With a flourish of his staff, glowing symbols appeared again. “Now,” the wizard said, his voice taking on a lighthearted tone, “we must rename your existing &lt;code&gt;index.blade.php&lt;/code&gt; to &lt;code&gt;posts.blade.php&lt;/code&gt;, preserving the blog feed layout. Then, we will craft a new &lt;code&gt;index.blade.php&lt;/code&gt; file that will serve as your enchanting Home Page.”  &lt;/p&gt;
&lt;p&gt;The wizard paused, his eyes twinkling with playful mischief. “I hope you know how to rename a file, Zoe! Whether it’s by the mystical powers of the Finder, the sorcery of a code editor, or even a command-line spell, the choice is yours. After all,” he added with a chuckle, “every wizard has their own style.”  &lt;/p&gt;
&lt;p&gt;Zoe giggled as she took the parchment. “Don’t worry, I’ve got this!” she said confidently, and with a few swift movements (and maybe a little bit of magic), the files were renamed.  &lt;/p&gt;
&lt;p&gt;The wizard nodded approvingly. “Well done, Zoe. You’re truly mastering the art of creation. Now, let’s bring your new Home Page to life!”  &lt;/p&gt;
&lt;p&gt;“Now, in this new &lt;code&gt;index.blade.php&lt;/code&gt; file, we shall create the foundation for your landing page,” the wizard continued, his tone filled with wonder. The base structure appeared before them, etched in glowing runes. Zoe carefully transcribed it into the new file:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@php($title = 'Home') 
@extends(config('hyde-layouts-manager.layouts.' . config('hyde-layouts-manager.default_layout') . '.app', 'hyde::layouts.app'))
@section('content')
 &amp;lt;!-- Your magical content goes here --&amp;gt; 
@endsection
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The wizard smiled as Zoe reviewed the file. “This page will now serve as the welcoming gateway to your site. Simple, elegant, and full of potential, just like your journey. And if you ever wish to enhance it with animations or other charms, the &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/melasistema/hydephp-layouts-manager&quot;&gt;HydePHP Layouts Manage&lt;/a&gt; will always be at your side!”  &lt;/p&gt;
&lt;p&gt;Zoe beamed with pride as she saved the file. Her magical Home Page was complete, a perfect starting point for her adventure.  &lt;/p&gt;
&lt;p&gt;Zoe watched intently as the wizard prepared the next spell. “Within this new structure,” he said, “we will first place a Carousel to showcase your enchanting doodles. Then, we shall add a Hero Section to invite your visitors to explore and buy your books. Watch closely, Zoe, for this is the magic that will guide them into your world.”  &lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;The Hyde Wizard stood proudly before the glowing projection of Zoe’s landing page. “Ah, Zoe, we’ve come so far,” he said, his voice warm with pride. “But to truly complete this masterpiece, we must integrate the final components into your new &lt;code&gt;index.blade.php&lt;/code&gt;. This will be the heart of your site—a page that captivates and invites all who visit.”  &lt;/p&gt;
&lt;p&gt;With a wave of his staff, the wizard conjured the finalized blueprint of the Home Page:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@php($title = 'Home')
@extends(config('hyde-layouts-manager.layouts.' . config('hyde-layouts-manager.default_layout') . '.app', 'hyde::layouts.app'))

@section('content')

    {!! app('layout.manager')-&amp;gt;renderComponent('carousel', [
        'layout' =&amp;gt; [
            'showIndicators' =&amp;gt; false,
            'showControls' =&amp;gt; false,
            'rounded' =&amp;gt; false,
        ],
        'images' =&amp;gt; [
            'media/zoe-doodle-showcase.png',
        ]]) 
    !!}

    &amp;lt;section class=&quot;max-w-8xl mx-auto&quot;&amp;gt;
        &amp;lt;div class=&quot;grid grid-cols-1 md:grid-cols-2 items-center&quot;&amp;gt;
            &amp;lt;!-- Left Column: Hero --&amp;gt;
            &amp;lt;div class=&quot;p-8 flex items-center&quot;&amp;gt;
                {!! app('layout.manager')-&amp;gt;renderComponent('hero', [
                        'layout' =&amp;gt; [
                            'showPrimaryButton' =&amp;gt; true,
                            'showSecondaryButton' =&amp;gt; false,
                            'showSubHeadingText' =&amp;gt; true,
                        ],
                        'settings' =&amp;gt; [
                            'headingTextAlign' =&amp;gt; 'right',
                            'subHeadingTextAlign' =&amp;gt; 'right',
                            'buttonsGroupAlign' =&amp;gt; 'right',
                        ],
                    ]) 
                !!}
            &amp;lt;/div&amp;gt;
            
            &amp;lt;!-- Right Column: Gallery --&amp;gt;
            &amp;lt;div class=&quot;p-8&quot;&amp;gt;
                {!! app('layout.manager')-&amp;gt;renderComponent('gallery', [
                        'layout' =&amp;gt; [
                            'gap' =&amp;gt; '',
                            'rounded' =&amp;gt; false,
                        ],
                    ]) 
                !!}
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;

        &amp;lt;div class=&quot;grid grid-cols-1 md:grid-cols-2 items-center&quot;&amp;gt;
            &amp;lt;!-- Left Column: Carousel --&amp;gt;
            &amp;lt;div class=&quot;p-8 flex items-center&quot;&amp;gt;
                {!! app('layout.manager')-&amp;gt;renderComponent('carousel', [
                        'layout' =&amp;gt; [
                            'showIndicators' =&amp;gt; false,
                            'showControls' =&amp;gt; false,
                            'rounded' =&amp;gt; true,
                        ],
                    ]) 
                !!}
            &amp;lt;/div&amp;gt;
            
            &amp;lt;!-- Right Column: Accordion --&amp;gt;
            &amp;lt;div class=&quot;p-8&quot;&amp;gt;
                {!! app('layout.manager')-&amp;gt;renderComponent('accordion') !!}
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/section&amp;gt;

@endsection
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The wizard gestured triumphantly. “There, Zoe! Your landing page now harmoniously combines a Carousel to captivate, a Hero Section to inspire, and a Gallery with a whimsical Accordion to charm your visitors. Together, they create an enchanting introduction to your magical world.”  &lt;/p&gt;
&lt;p&gt;Zoe clapped her hands in delight. “Thank you, Wizard! This is everything I dreamed of and more.”  &lt;/p&gt;
&lt;p&gt;The Hyde Wizard bowed deeply. “The greatest magic lies in creation, dear Zoe. Go forth and let the world marvel at your art.”  &lt;/p&gt;
&lt;p&gt;Zoe could hardly contain her excitement as her vision came to life. The wizard placed a hand on her shoulder. “Your journey, Zoe, is a testament to your determination and creativity. Soon, the world will see it too.”  &lt;/p&gt;
&lt;hr&gt;
&lt;h4 id=&quot;step-3-the-heartful-gift-mastering-typography-with-the-font-manager&quot;&gt;Step 3: The Heartful Gift – Mastering Typography with the Font Manager&lt;/h4&gt;
&lt;p&gt;The Hyde Wizard’s eyes twinkled as he turned to Zoe. “Ah, dear Zoe, as you embark on your creative journey, there is one thing I cannot let you do alone. Finding the perfect combination of fonts from the vast seas of choices is a daunting task, even for a seasoned wizard like myself.”  &lt;/p&gt;
&lt;p&gt;With a flick of his staff, a parchment appeared in midair, adorned with elegant calligraphy and enchanting designs. “I have prepared this for you—a Chanting Charm, crafted specifically for your site. It contains fonts that are as unique as you are, selected with great care to bring your vision to life.”  &lt;/p&gt;
&lt;p&gt;Zoe’s eyes widened as she reached for the parchment. “You… you did this for me?” she asked, her voice filled with awe.  &lt;/p&gt;
&lt;p&gt;The wizard smiled warmly. “Of course, my dear. A website’s typography is its voice, and every creator deserves a voice that sings true to their heart. This charm is not just a tool—it’s a gift, woven with care and purpose, and designed to save you hours of toil and uncertainty.”  &lt;/p&gt;
&lt;p&gt;He gestured toward the glowing runes, now shaping themselves into a magical guide:  &lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;The Font Manager allows you to tailor your site’s typography with ease. Using the &lt;code&gt;hyde-layouts-manager-fonts.json&lt;/code&gt; file, you can customize fonts dynamically for every layout. Here’s how your Chanting Charm has been configured:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{
  &quot;layouts&quot;: {
    &quot;melasistema&quot;: {
      &quot;use_google_fonts&quot;: true,
      &quot;families&quot;: {
        &quot;primary&quot;: &quot;Indie Flower:wght@400&quot;,
        &quot;secondary&quot;: &quot;Sour Gummy:wght@600&quot;,
        &quot;display&quot;: &quot;Sour Gummy:wght@600&quot;,
        &quot;heading&quot;: &quot;Sour Gummy:wght@600&quot;,
        &quot;subheading&quot;: &quot;Handlee:wght@400&quot;,
        &quot;accent&quot;: &quot;Just Another Hand:wght@400&quot;,
        &quot;code&quot;: &quot;Fira Code:wght@400;500&quot;,
        &quot;small&quot;: &quot;Amatic SC:wght@400;700&quot;
      },
      &quot;typography_mapping&quot;: {
        &quot;h1&quot;: &quot;display&quot;,
        &quot;h2&quot;: &quot;heading&quot;,
        &quot;h3&quot;: &quot;subheading&quot;,
        &quot;h4&quot;: &quot;subheading&quot;,
        &quot;h5&quot;: &quot;secondary&quot;,
        &quot;h6&quot;: &quot;secondary&quot;,
        &quot;p&quot;: &quot;primary&quot;,
        &quot;small&quot;: &quot;small&quot;,
        &quot;code&quot;: &quot;code&quot;,
        &quot;blockquote&quot;: &quot;display&quot;,
        &quot;label&quot;: &quot;secondary&quot;,
        &quot;button&quot;: &quot;heading&quot;
      },
      &quot;custom_css&quot;: {}
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The wizard leaned closer, his voice soft with reassurance. “Every font, every mapping, has been chosen to complement your unique style. From the playful grace of Indie Flower for your paragraphs to the bold elegance of Sour Gummy for your headings, these choices will bring harmony and joy to your site.”  &lt;/p&gt;
&lt;p&gt;Zoe studied the parchment, marveling at the thoughtfulness of the selections. “But how will I make this charm work?”  &lt;/p&gt;
&lt;p&gt;“Ah, that’s simple,” the wizard replied, waving his staff to reveal another set of glowing instructions. “Place this configuration into the &lt;code&gt;config/hyde-layouts-manager-fonts.json&lt;/code&gt; file. Once done, simply compile your assets with this spell:”  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;“And with that,” he added, “your typography will come alive with the magic of Google Fonts. Should you wish to tweak the charm or disable the Google Fonts altogether, you can modify use_google_fonts or adjust the families and mappings as you see fit. The world of typography is yours to shape.”  &lt;/p&gt;
&lt;p&gt;Zoe’s heart swelled with gratitude. “Thank you, Wizard. This is more than I ever expected.”  &lt;/p&gt;
&lt;p&gt;The Hyde Wizard beamed, placing a hand on her shoulder. “Every creator deserves to feel empowered and inspired, dear Zoe. Now go forth and let your fonts sing your story.”  &lt;/p&gt;
&lt;p&gt;![Zoe's Magical Website](&lt;a rel=&quot;nofollow&quot; href=&quot;https://hydephp.melasistema.com/media/posts/zoe-tutorial/zoe-website-screenshots-group.png&quot;&gt;https://hydephp.melasistema.com/media/posts/zoe-tutorial/zoe-website-screenshots-group.png&lt;/a&gt; 'Zoe’s Magical Website')  &lt;/p&gt;
&lt;hr&gt;
&lt;h4 id=&quot;step-4-the-final-spell-publishing-to-the-world&quot;&gt;Step 4: The Final Spell – Publishing to the World&lt;/h4&gt;
&lt;p&gt;The Hyde Wizard waved his wand once more, and Zoe’s magical website was now ready for the world. “With the power of &lt;a rel=&quot;nofollow&quot; href=&quot;https://hydephp.com&quot;&gt;HydePHP&lt;/a&gt;, you can now make your site live for all to see,” the wizard said.  &lt;/p&gt;
&lt;p&gt;Zoe followed the last set of instructions the Hyde Wizard gave her, deploying her site with ease. No more complex technical challenges! The website was now online, ready to captivate audiences and display her beautiful, hand-crafted doodles.  &lt;/p&gt;
&lt;p&gt;Soon, visitors were drawn to Zoe’s site from all over the kingdom. They were enchanted by the magical landing page, captivated by the delightful font choices, and inspired by her artwork. One by one, people began to share her site, and Zoe's books became a best-seller on Amazon!  &lt;/p&gt;
&lt;p&gt;The wizard smiled knowingly, adding a final note of encouragement. “HydePHP’s magic doesn’t end with creation, Zoe. Your site’s static nature means it can be hosted almost anywhere, even on free platforms like Netlify or GitHub Pages. With no database to worry about, your site will always be fast, reliable, and cost-effective, allowing your creativity to shine without limits.”  &lt;/p&gt;
&lt;hr&gt;
&lt;h4 id=&quot;the-end-zoe-s-happy-ever-after&quot;&gt;The End – Zoe's Happy Ever After&lt;/h4&gt;
&lt;p&gt;Thanks to the Hyde Wizard and the tools of &lt;a rel=&quot;nofollow&quot; href=&quot;https://hydephp.com&quot;&gt;HydePHP&lt;/a&gt; &amp;amp; &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/melasistema/hydephp-layouts-manager&quot;&gt;Layouts Manager&lt;/a&gt;, Zoe’s dream had come true. No longer just a doodler, she had become a published author, a beloved artist, and a recognized force in the digital kingdom.  &lt;/p&gt;
&lt;p&gt;And so, Zoe lived happily ever after, knowing that with a little magic and the power of &lt;strong&gt;HydePHP&lt;/strong&gt;, even the most whimsical dreams can come to life.  &lt;/p&gt;
&lt;hr&gt;
&lt;h4 id=&quot;a-magical-scroll-of-links&quot;&gt;A Magical Scroll of Links&lt;/h4&gt;
&lt;p&gt;As Zoe's story concluded, the Hyde Wizard unfurled a glowing scroll filled with links and special thanks, a final touch to the enchanting journey.  &lt;/p&gt;
&lt;p&gt;✨ Link to Zoe’s Magical Website  &lt;br&gt;
“Behold the fruits of our labor!” the wizard declared. Visit Zoe’s whimsical world and experience her magical doodles firsthand.  &lt;br&gt;
 &lt;a rel=&quot;nofollow&quot; href=&quot;https://hydewizard.melasistema.com&quot;&gt;Zoe’s Website&lt;/a&gt;  &lt;/p&gt;
&lt;p&gt; Link to the Hyde Wizard’s Treasure Trove  &lt;br&gt;
“For those who wish to explore the arcane arts behind this creation,” the wizard said, tapping his staff, “you’ll find all the spells and scripts here.”  &lt;br&gt;
 &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/melasistema/hyde-wizard&quot;&gt;Hyde Wizard’s GitHub Repo&lt;/a&gt;  &lt;/p&gt;
&lt;p&gt; Link to the HydePHP Layouts Manager  &lt;br&gt;
“The secret to crafting such a visually stunning site lies within this powerful tool,” the wizard explained. Customize your fonts, layouts, and styles to make your own magic.  &lt;br&gt;
 &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/melasistema/hydephp-layouts-manager&quot;&gt;HydePHP Layouts Manager Repository&lt;/a&gt;  &lt;/p&gt;
&lt;p&gt;“If you find this tool helpful,” the wizard added with a wink, “consider giving it a ⭐ on &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/melasistema/hydephp-layouts-manager&quot;&gt;GitHub&lt;/a&gt;. And for those feeling adventurous, contributions are always welcome to expand the magic for others!”  &lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;“Now, dear reader,” the wizard said, rolling up the scroll, “the magic is in your hands. Go forth and create your own enchanting tales!”&lt;/p&gt;
</description>
<category>Getting Started</category>
<guid isPermaLink="true">https://coderlegion.com/891/the-tale-of-zoe-from-doodler-to-best-seller-with-hydephp-part-2</guid>
<pubDate>Tue, 21 Jan 2025 23:23:33 +0000</pubDate>
</item>
<item>
<title>The Tale of Zoe: From Doodler to Best-Seller with HydePHP - (part 1)</title>
<link>https://coderlegion.com/890/the-tale-of-zoe-from-doodler-to-best-seller-with-hydephp-part-1</link>
<description>&lt;h4 id=&quot;prologue&quot;&gt;Prologue&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;HydePHP&lt;/strong&gt; is more than just a static site generator; it’s a magical tool that empowers developers and creators to bring their visions to life. Designed by the talented &lt;strong&gt;Caen De Silva&lt;/strong&gt;, HydePHP is a treasure trove for PHP and Laravel enthusiasts, offering an intuitive way to build stunning functional websites and much more. Inspired by its possibilities, I crafted a tutorial that dives deep into using HydePHP, coupled with my custom Composer package, the &lt;strong&gt;HydePHP Layouts Manager&lt;/strong&gt;, which try to simplifies the management of layouts and reusable components within HydePHP projects.  &lt;/p&gt;
&lt;p&gt;The tutorial, originally published on my blog, takes a creative twist by telling &lt;strong&gt;&lt;em&gt;The Tale of Zoe: an artist with a dream to turn her doodles into a best-selling brand.&lt;/em&gt;&lt;/strong&gt; Through her hypothetical story, I demonstrate how anyone can build a captivating website with &lt;strong&gt;HydePHP&lt;/strong&gt; featuring a hero section, an engaging FAQ accordion, and an interactive carousel, all designed to promote Zoe’s fictional book—a scenario that resonates with many aspiring artists.  &lt;/p&gt;
&lt;p&gt;Now reposted here on the &lt;strong&gt;Coder Legion Community&lt;/strong&gt;, this guide not only highlights the ease and joy of working with &lt;strong&gt;HydePHP&lt;/strong&gt; but also serves as a hands-on case study for exploring its features and extending its capabilities with the HydePHP Layouts Manager.  &lt;/p&gt;
&lt;p&gt;Let Zoe’s enchanting journey inspire you as we unlock the magic of static site generation, one line of code at a time.  &lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;the-tale-of-zoe-from-doodler-to-best-seller-with-hydephp&quot;&gt;The Tale of Zoe: From Doodler to Best-Seller with HydePHP&lt;/h2&gt;
&lt;p&gt;Once upon a time, in a land filled with pixels and code, there lived a young artist named Zoe. Zoe was a doodler—her sketchbooks brimmed with whimsical characters, enchanting landscapes, and magical creatures. Yet, Zoe had a dream: to turn her passion for art into a radiant online presence, where her designs could inspire people from all corners of the kingdom.  &lt;/p&gt;
&lt;p&gt;Whispers of a wondrous creation reached far and wide—a magical place where Zoe’s dreams had taken shape. A glowing beacon, they called it:  &lt;/p&gt;
&lt;p&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;https://hydewizard.melasistema.com&quot;&gt;Zoe’s Magical Website&lt;/a&gt;.  &lt;/p&gt;
&lt;p&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/melasistema/hyde-wizard&quot;&gt;Hyde Wizard’s GitHub Repo&lt;/a&gt;  &lt;/p&gt;
&lt;p&gt;But Zoe wasn’t sure how to make her dream come true. She had heard whispers of magical tools—arcane artifacts like &lt;strong&gt;Composer&lt;/strong&gt;, the fabled package manager, and &lt;strong&gt;Node.js&lt;/strong&gt;, the spellbook of modern web enchantments. These tools, they said, were the key to unlocking a powerful force known as &lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://hydephp.com&quot;&gt;HydePHP&lt;/a&gt;&lt;/strong&gt; and its enchanting ally, the &lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/melasistema/hydephp-layouts-manager/releases/tag/0.2.0&quot;&gt;HydePHP Layouts Manager&lt;/a&gt;&lt;/strong&gt;.  &lt;/p&gt;
&lt;p&gt;These tales also spoke of a mysterious guide known as the PHP Shaman, a being of both wisdom and power who walked the delicate thread between the tangible and the ethereal.  &lt;/p&gt;
&lt;p&gt;One day, as Zoe wandered through the dense and tangled Forest of Code, she stumbled upon a clearing bathed in soft, glowing light. There, standing amidst the swirling lines of logic and dreamlike patterns, was the Shaman of Code—the Hyde Wizard. Draped in a cloak that seemed woven from strands of light and shadow, the wizard’s silhouette was crowned by a pointed hat that shimmered with the symbols of forgotten scripts and timeless spells. The wizard radiated an aura of unity, as though the dual forces of science and magic were not opposites but two sides of the same coin.  &lt;/p&gt;
&lt;hr&gt;
&lt;h4 id=&quot;step-1-the-first-spell-creating-zoe-s-magical-website&quot;&gt;Step 1: The First Spell – Creating Zoe’s Magical Website&lt;/h4&gt;
&lt;p&gt;He chanted the incantation, and with a wave of his hand, Zoe had installed &lt;a rel=&quot;nofollow&quot; href=&quot;https://hydephp.com/&quot;&gt;HydePHP&lt;/a&gt;, which gave her the ability to craft a website with ease. &lt;a rel=&quot;nofollow&quot; href=&quot;https://hydephp.com/&quot;&gt;HydePHP&lt;/a&gt; would help her create a platform for her doodles, designs, and stories—just like magic!  &lt;/p&gt;
&lt;p&gt;Zoe quickly followed the wizard’s guidance and, with a few commands, created the foundation for her site:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;composer create-project hyde/hyde zoe-bookscd zoe-books
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As the foundation materialized on the screen, the Hyde Wizard clapped his hands in delight. “Ah, but what is a magical website without a proclamation to the world? A new adventure must always start with an announcement!” He spun around dramatically, pointing his wand at Zoe’s screen.  &lt;/p&gt;
&lt;p&gt;“Let us craft your first blog post to declare your arrival!”  &lt;/p&gt;
&lt;p&gt;Zoe, catching on to the wizard’s enthusiasm, asked, “What should I say?”  &lt;/p&gt;
&lt;p&gt;The wizard grinned. “Why, tell them of the magic you bring! Something enchanting, like:  &lt;br&gt;
‘A Magical Doodly Website is Finally Here!’”  &lt;/p&gt;
&lt;p&gt;With the wizard’s help, Zoe created her first blog post, typing out the command with excitement:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php hyde make:post &quot;A Magical Doodly Website is Finally Here&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In an instant, the blog post was ready, its words filled with excitement and charm. The Hyde Wizard nodded approvingly. “Now the world shall know of your journey, Zoe. This is how adventures begin—by sharing your story!”  &lt;/p&gt;
&lt;p&gt;But the Hyde Wizard wasn’t done yet. With a mysterious smile, he beckoned Zoe to follow further into the magic. “Come now, Zoe. Let us unveil a glimpse of what your website will look like. For this, we must conjure the Blog Feed Page, where all your posts will gather like a flock of enchanted words.”  &lt;/p&gt;
&lt;p&gt;With a sweep of his wand, he instructed Zoe to type:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php hyde publish:homepage
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When the shimmering menu appeared, Zoe carefully selected [1], creating a page dedicated to her blog posts. As the magical command settled, the Hyde Wizard turned to Zoe with a knowing smile. “The magic needs a little spark to take full effect,” he said gently.  &lt;/p&gt;
&lt;p&gt;Understanding his meaning, Zoe answered the next prompt with a confident “Yes,” and the site began to rebuild itself, shimmering like stardust as the changes came to life. The Hyde Wizard watched proudly as the foundation grew before their eyes.  &lt;/p&gt;
&lt;p&gt;“Now,” he said, his voice lowering to a reverent tone, “it is time to ignite the Magical Engine. With this, your website will come alive, and you shall catch your first glimpse of your creation.” He gestured for Zoe to continue:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php hyde serve
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Zoe held her breath and ran the incantation. The magical engine hummed to life, its gears turning invisibly in the depths of her laptop. She opened her browser, and there it was—a simple but elegant page displaying her very first blog post.  &lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;img src=&quot;https://hydephp.melasistema.com/media/posts/zoe-tutorial/01-zoe-default-blog-feed.jpg&quot; alt=&quot;Default HydePHP Blog Feed&quot; title=&quot;Default HydePHP Blog Feed&quot;&gt;  &lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;“It’s beautiful!” Zoe whispered, marveling at the default HydePHP blog feed. The structured simplicity of the design hinted at the endless possibilities lying just beneath the surface.  &lt;/p&gt;
&lt;p&gt;The Hyde Wizard smiled as Zoe’s eyes sparkled with wonder. “This, dear Zoe, is but the beginning. You’ve taken your first steps into a larger world of creation and connection. Imagine what will come next!”  &lt;/p&gt;
&lt;p&gt;Zoe nodded eagerly, but the wizard’s expression grew serious once more. “Before we can craft the landing page of your dreams, we must enhance your powers by installing a magical artifact—the HydePHP Layouts Manager. This will equip you with the layouts, components, and styles needed for the enchantments we are about to weave.”  &lt;/p&gt;
&lt;p&gt;With a wave of his staff, a shimmering list of instructions appeared before Zoe.  &lt;/p&gt;
&lt;p&gt;“To begin, invoke this spell in your terminal,” the wizard said:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;composer require melasistema/hyde-layouts-manager
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Zoe did as instructed, watching lines of text scroll across the terminal like incantations in a spellbook.  &lt;/p&gt;
&lt;p&gt;“Now, to channel this magic, you must set the foundation for your layouts. Rename the &lt;code&gt;.env.example&lt;/code&gt; file to &lt;code&gt;.env&lt;/code&gt; and add this line,” the wizard continued, his tone like that of a teacher passing down ancient knowledge:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;DEFAULT_LAYOUT=melasistema  
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;“This default configuration ensures your layouts will radiate with elegance and harmony. But know this: the magic of HydePHP allows you to define your own styles, should you ever wish to forge your path.”  &lt;/p&gt;
&lt;p&gt;Zoe added the line and closed the &lt;code&gt;.env&lt;/code&gt; file with a triumphant click.  &lt;/p&gt;
&lt;p&gt;The wizard nodded approvingly. “Good. Next, we must publish the package’s configuration so it's magic can integrate with your project. Use this command to prepare the way:”  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php hyde vendor:publish --provider=&quot;Melasistema\HydeLayoutsManager\HydeLayoutsManagerServiceProvider&quot; --tag=&quot;hyde-layouts-manager-config&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Zoe ran the command, feeling a surge of confidence as the configuration files materialized in her project.  &lt;/p&gt;
&lt;p&gt;“Impressive,” the wizard remarked, his eyes glinting. “But there’s more work to be done. To harmonize your project’s styles with the Hyde Layouts Manager, we must merge its Tailwind configuration. We have two paths forward—choose wisely.”  &lt;/p&gt;
&lt;p&gt;The wizard’s staff illuminated two options in the air.  &lt;/p&gt;
&lt;p&gt;Automated Merge: “For speed and simplicity, use this command. But be warned, this will overwrite your existing &lt;code&gt;tailwind.config.js&lt;/code&gt;. Back it up if you’ve customized it.”  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php hyde tailwind:merge
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Manual Merge: “Or, if you prefer precision, you may manually weave the Layouts Manager configuration into your &lt;code&gt;tailwind.config.js&lt;/code&gt;. Here’s the structure:”  &lt;/p&gt;
&lt;p&gt;(The wizard conjured a glowing scroll, displaying the configuration Zoe could copy-paste.)  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const HydeLayoutsManagerConfig = require('./tailwind-layouts-manager.config.js');

module.exports = {
    darkMode: 'class',
    content: [
        './_pages/**/*.blade.php',
        './resources/views/**/*.blade.php',
        './vendor/hyde/framework/resources/views/**/*.blade.php',
        ...HydeLayoutsManagerConfig.content,
    ],
    theme: {
        extend: {
            ...HydeLayoutsManagerConfig.theme.extend,
        },
    },
    plugins: [
        require('@tailwindcss/typography'),
        ...HydeLayoutsManagerConfig.plugins
    ],
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Zoe chose the automated path, swiftly running the command and watching the terminal respond with magic.  &lt;/p&gt;
&lt;p&gt;“Finally,” the wizard said, “your components require Flowbite, a library of enchanted scripts and styles. Let us add this dependency.”  &lt;/p&gt;
&lt;p&gt;With a flick of his wrist, another command appeared:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php hyde package-json:merge
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;“And then, weave it into your project with this incantation:”  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;npm install
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Zoe executed both spells, her fingers flying over the keyboard.  &lt;/p&gt;
&lt;p&gt;“To bind these scripts to your project,” the wizard continued, “you must update your &lt;code&gt;webpack.mix.js&lt;/code&gt; with these instructions.” He pointed to another glowing scroll:  &lt;/p&gt;
&lt;p&gt;let mix = require('laravel-mix');  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;mix.css('node_modules/flowbite/dist/flowbite.css', 'app.css')  
.js('node_modules/flowbite/dist/flowbite.js', 'app.js')
.js('resources/assets/app.js', 'app.js') 
.postCss('resources/assets/app.css', 'app.css', [ 
require('tailwindcss'), 
require('autoprefixer'), 
])
.setPublicPath('_site/media') 
.copyDirectory('_site/media', '_media');  
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;“Finally, invoke the build process with this command,” he concluded:  &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The project whirred to life as the commands took effect. Zoe beamed with pride.  &lt;/p&gt;
&lt;p&gt;“Now,” the wizard declared, “you are ready for the next step—crafting your magical landing page.”  &lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://coderlegion.com/891/the-tale-of-zoe-from-doodler-to-best-seller-with-hydephp-part-2&quot;&gt;...continue reading (part 2)&lt;/a&gt;&lt;/p&gt;
</description>
<category>Getting Started</category>
<guid isPermaLink="true">https://coderlegion.com/890/the-tale-of-zoe-from-doodler-to-best-seller-with-hydephp-part-1</guid>
<pubDate>Tue, 21 Jan 2025 23:00:48 +0000</pubDate>
</item>
</channel>
</rss>