<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: toufiqAT</title>
    <description>The latest articles on DEV Community by toufiqAT (@toufiqat).</description>
    <link>https://dev.to/toufiqat</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F980464%2Fb4fd95ee-d3d7-468c-9d18-95920a5c4154.png</url>
      <title>DEV Community: toufiqAT</title>
      <link>https://dev.to/toufiqat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/toufiqat"/>
    <language>en</language>
    <item>
      <title>How Laravel Has Saved PHP Over the Years</title>
      <dc:creator>toufiqAT</dc:creator>
      <pubDate>Tue, 19 Aug 2025 07:46:22 +0000</pubDate>
      <link>https://dev.to/toufiqat/how-laravel-has-saved-php-over-the-years-54ai</link>
      <guid>https://dev.to/toufiqat/how-laravel-has-saved-php-over-the-years-54ai</guid>
      <description>&lt;p&gt;For many years, PHP has been one of the most widely used programming&lt;br&gt;
languages for web development. From powering early dynamic websites to&lt;br&gt;
becoming the backbone of platforms like WordPress, PHP has played a&lt;br&gt;
critical role in the evolution of the internet. However, as new&lt;br&gt;
languages and frameworks emerged, PHP often found itself the subject of&lt;br&gt;
criticism --- called outdated, inconsistent, or not "modern enough."&lt;/p&gt;

&lt;p&gt;Yet, amidst these criticisms, &lt;strong&gt;Laravel&lt;/strong&gt; emerged as a savior that not&lt;br&gt;
only modernized PHP but also restored its reputation as a language&lt;br&gt;
capable of powering robust, scalable, and elegant applications.&lt;/p&gt;




&lt;h2&gt;
  
  
  Laravel's Impact on PHP
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Modern Development Practices&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Before Laravel, PHP development was often fragmented. Laravel introduced&lt;br&gt;
standardized, modern practices such as MVC (Model-View-Controller)&lt;br&gt;
architecture, routing, middleware, dependency injection, and ORM through&lt;br&gt;
&lt;strong&gt;Eloquent&lt;/strong&gt;. This gave PHP developers tools and structures that rivaled&lt;br&gt;
frameworks in other ecosystems like Django (Python) and Ruby on Rails.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Boosting Developer Productivity&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Laravel's expressive syntax and pre-built functionalities drastically&lt;br&gt;
reduced the time developers spent reinventing the wheel. Features like&lt;br&gt;
authentication scaffolding, queue management, caching, and Blade&lt;br&gt;
templating empowered developers to focus on business logic rather than&lt;br&gt;
boilerplate code.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;Ecosystem and Tooling&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;The Laravel ecosystem became a game changer. With tools like: -&lt;br&gt;
&lt;strong&gt;Horizon&lt;/strong&gt; for queues, - &lt;strong&gt;Forge&lt;/strong&gt; for server management, - &lt;strong&gt;Envoyer&lt;/strong&gt;&lt;br&gt;
for zero-downtime deployment, - &lt;strong&gt;Nova&lt;/strong&gt; for administration panels,\&lt;br&gt;
Laravel gave PHP a complete ecosystem that directly competed with&lt;br&gt;
JavaScript's Node.js and Python's Django.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. &lt;strong&gt;Community and Learning&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Laravel's vibrant community and resources like &lt;strong&gt;Laracasts&lt;/strong&gt; provided a&lt;br&gt;
rich learning environment. The framework didn't just modernize PHP&lt;br&gt;
technically --- it revitalized the PHP community, attracting new&lt;br&gt;
developers and helping existing ones level up.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. &lt;strong&gt;Restoring PHP's Reputation&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Thanks to Laravel, many developers who had abandoned PHP began&lt;br&gt;
returning. Organizations started seeing PHP as a serious contender again&lt;br&gt;
for enterprise-grade applications. Laravel effectively rebranded PHP&lt;br&gt;
from being "old-school" to being modern and powerful.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Future of PHP with Laravel
&lt;/h2&gt;

&lt;p&gt;The relationship between PHP and Laravel is symbiotic: Laravel's success&lt;br&gt;
depends on PHP, and PHP's survival in modern web development owes much&lt;br&gt;
to Laravel.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Continuous Modernization&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;With each new version, Laravel pushes PHP forward, adopting features&lt;br&gt;
from newer PHP releases (like type declarations, attributes, and JIT&lt;br&gt;
compilation). As PHP continues to evolve, Laravel ensures these features&lt;br&gt;
are accessible and practical for everyday development.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Scalability and Enterprise Adoption&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Laravel is no longer just for small projects. Its ecosystem now supports&lt;br&gt;
&lt;strong&gt;microservices&lt;/strong&gt;, &lt;strong&gt;event-driven architectures&lt;/strong&gt;, and &lt;strong&gt;serverless&lt;br&gt;
deployments&lt;/strong&gt;. This opens the door for PHP to remain relevant in&lt;br&gt;
large-scale, enterprise-level applications.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;Integration with Emerging Tech&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Laravel is expanding beyond traditional monolithic applications: -&lt;br&gt;
Support for APIs and headless CMS architectures. - Integration with&lt;br&gt;
front-end frameworks like React, Vue, and Inertia.js. - Growing&lt;br&gt;
compatibility with cloud-native deployments (Docker, Kubernetes).&lt;/p&gt;

&lt;h3&gt;
  
  
  4. &lt;strong&gt;Strengthening PHP's Longevity&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;As long as Laravel continues to innovate, PHP will remain a strong&lt;br&gt;
player in web development. Laravel provides PHP with the "modern face"&lt;br&gt;
it needs to compete with ecosystems like Node.js, Go, or Python.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;PHP may have been doubted, criticized, and even declared "dead"&lt;br&gt;
countless times. But with Laravel, it has found a second life ---&lt;br&gt;
stronger, more modern, and more loved than ever before. Laravel has not&lt;br&gt;
only saved PHP; it has propelled it into the future.&lt;/p&gt;

&lt;p&gt;And as both PHP and Laravel continue to evolve, their partnership&lt;br&gt;
promises to keep delivering powerful, scalable, and elegant solutions to&lt;br&gt;
developers and businesses worldwide.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The future of PHP is Laravel-powered.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>SQL Command to list databases along with their storage consumption</title>
      <dc:creator>toufiqAT</dc:creator>
      <pubDate>Fri, 27 Jun 2025 06:10:02 +0000</pubDate>
      <link>https://dev.to/toufiqat/sql-command-to-list-databases-along-with-their-storage-consumption-11ll</link>
      <guid>https://dev.to/toufiqat/sql-command-to-list-databases-along-with-their-storage-consumption-11ll</guid>
      <description>&lt;h4&gt;
  
  
  To list databases along with their storage consumption, here are how to do it for popular databases
&lt;/h4&gt;

&lt;h3&gt;
  
  
  PostgreSQL
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT
  datname AS database_name,
  pg_size_pretty(pg_database_size(datname)) AS size
FROM
  pg_database
ORDER BY
  pg_database_size(datname) DESC;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  MySQL / MariaDB
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT 
  table_schema AS database_name,
  ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS size_in_mb
FROM 
  information_schema.tables
GROUP BY 
  table_schema
ORDER BY 
  size_in_mb DESC;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Clickhouse
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT
  database,
  formatReadableSize(sum(bytes_on_disk)) AS total_size
FROM
  system.parts
GROUP BY
  database
ORDER BY
  sum(bytes_on_disk) DESC;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
