configuration



Domain Driven Design with Laravel 9

  • avatar
Preview post image

Modern web frameworks teach you to take one group of related concepts and split it across multiple places throughout your codebase. Laravel is a robust framework with a big community behind it. Usually it's standard structure is enough for most starting projects.

Building scalable applications, instead, requires a different approach. Have you ever heard from a client to work on controllers or review the models folder? Probably never - they ask you to work on invoicing, clients management or users. These concept groups are called domains.

Running PHP8.3 with Nginx on Ubuntu

  • avatar
Preview post image

PHP is a scripting language widely used for web development, with code processed on a web server through a PHP interpreter, implemented as a module, daemon, or CGI executable. Nginx lacks the default ability to handle dynamic web pages with PHP and requires specific additional plugins for this purpose. One such plugin is FPM (FastCGI Process Manager), an alternative PHP FastCGI implementation offering additional features, particularly advantageous for high-traffic sites. FPM stands out as the preferred method for PHP page processing with Nginx, surpassing traditional CGI-based methods in terms of speed.

Running PHP8.2 with Nginx on Ubuntu

  • avatar
  • 16.6K Views
  • 1 Like
  • 6 mins read
Preview post image

PHP is a general-purpose scripting language geared towards web development. PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon or as a Common Gateway Interface (CGI) executable.

By default Nginx is not capable of processing dynamic web pages with PHP so it requires the use of specific additional plugins for this purpose. One of these plugins is FPM (FastCGI Process Manager). FPM is an alternative PHP FastCGI implementation with some additional features (mostly) useful for heavy-loaded sites. It is the preferred method of processing PHP pages with Nginx and is faster than traditional CGI based methods.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails

Nginx with PHP8.1 FPM on Ubuntu 20.04

  • avatar
  • 14.3K Views
  • 17 Likes
  • 6 mins read
Preview post image

PHP is a general-purpose scripting language geared towards web development. PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon or as a Common Gateway Interface (CGI) executable.

By default Nginx is not capable of processing dynamic web pages with PHP so it requires the use of specific additional plugins for this purpose. One of these plugins is FPM (FastCGI Process Manager). FPM is an alternative PHP FastCGI implementation with some additional features (mostly) useful for heavy-loaded sites. It is the preferred method of processing PHP pages with Nginx and is faster than traditional CGI based methods.

Install PHPStan and configure for Laravel application

  • avatar
  • 12.7K Views
  • 12 Likes
  • 3 mins read
Preview post image

Unlike compiled languages, in PHP if you make a mistake, the program will crash when the line of code with the mistake is executed. When testing a PHP application, whether manually or automatically, developers spend a lot of their time discovering mistakes that wouldn’t even compile in other languages, leaving less time for testing actual business logic.

Boosting PHP performance with OPCache

  • avatar
  • 11.6K Views
  • 1 Like
  • 7 mins read
Preview post image

OPCache is a robust tool that enhances PHP performance, making web applications faster and more efficient. Included as an extension in PHP, OPCache stores precompiled script bytecode in shared memory. This eliminates the need for PHP to load and parse scripts with each request, significantly reducing execution overhead and improving server response times. This not only enhances the user experience but also reduces server load, allowing it to handle more requests at once. OPCache's benefits are especially noticeable in high-traffic environments where performance and efficiency are critical.

Create Laravel 10 project from scratch

  • avatar
  • 7.6K Views
  • 2 Likes
  • 5 mins read
Preview post image

Laravel is an open-source PHP web application framework designed for building web applications following the Model-View-Controller (MVC) architectural pattern. It was created in 2011 and become one of the most popular PHP frameworks used for web development.

Laravel provides developers with a number of powerful features and tools, including a simple and expressive syntax, built-in database migration and schema management, automated testing, and a robust ecosystem of third-party packages. Some of the key features of Laravel include its powerful routing engine, which allows developers to easily define application routes using a simple and intuitive syntax, and its comprehensive ORM (Object-Relational Mapping) system, which makes working with databases and models a breeze.

Create Laravel 11 project from scratch

  • avatar
  • 5.4K Views
  • 2 Likes
  • 5 mins read
Preview post image

Laravel is a PHP web application framework that's open-source and designed for building web applications following the Model-View-Controller (MVC) architectural pattern. It was created back in 2011 and has become one of the most widely used PHP frameworks for web development.

Laravel offers developers numerous powerful features and tools. These include a straightforward and expressive syntax, built-in database migration and schema management, automated testing capabilities, and a robust ecosystem of third-party packages. Among its key features are its powerful routing engine, which allows developers to easily define application routes, and its comprehensive ORM (Object-Relational Mapping) system, which simplifies working with databases and models.

Boost Laravel performance with OPCache

  • avatar
  • 5.3K Views
  • 7 Likes
  • 9 mins read
Preview post image

Enhancing the performance of Laravel applications brings a smoother and faster user experience. One powerful tool for achieving this is OPCache. OPCache is a PHP extension that stores precompiled script bytecode in memory, which reduces the overhead of parsing and compiling scripts with each request. This results in faster execution and improved overall efficiency.

Setup GitHub Actions for Laravel projects

  • avatar
  • 2.7K Views
  • 1 Like
  • 5 mins read
Preview post image

Managing a Laravel project involves many tasks that can be automated to save time and reduce errors. GitHub Actions offers a powerful way to automate workflows directly within your GitHub repository. By integrating GitHub Actions into your Laravel project, you can automate testing, deployment, and other routine tasks, ensuring a more efficient and reliable development process.