//PHP
Understanding get(), chunk(), lazy(), and cursor() in Laravel
Introduction When querying data, several factors can affect your application’s performance. Improper usage can lead to high memory consumption and significantly slow down page loading times. In addition to using Laravel Octane to boost performance, Laravel provides several methods to query data more efficiently, depending on the use case. In this article, Laravel 11 and..
See more- 45 views
- 0 Comments
Boost Application Performance with Laravel Octane
As you may know, traditional Laravel applications process one request (request) at a time. However, with Laravel Octane, you can handle multiple requests simultaneously, significantly increasing your website’s speed. 1. What is Laravel Octane? Laravel Octane is an open-source package designed to speed up Laravel applications. It starts your application once, keeps it in memory..
See more- 1,143 views
- 0 Comments
PHP Generators
Have you ever encountered this situation? This is an error that any PHP developer might face if the running process uses more memory than the allowed limit. Let’s go through a specific example: private function range() { $a = []; for ($i = 0; $i < PHP_INT_MAX; $i++) { $a[] = $i; } return $a;..
See more- 151 views
- 0 Comments
CSRF Attack Techniques and How to Prevent CSRF
Website security is extremely important for developers. Experienced developers usually have clever ways to secure their projects, but for beginners, this can be a very challenging issue. When it comes to website security, there are many things to discuss, and of course, I cannot cover everything in one article. Therefore, I will create a series..
See more- 63 views
- 0 Comments
New Features in Laravel LTS 5.5
The Laravel community has been eagerly awaiting the release of Laravel 5.5, as Taylor Otwell mentioned on Twitter. This version is anticipated because Laravel 5.5 will be the second LTS version after Laravel 5.1, the first LTS version, which will reach its end of support in July. LTS stands for “Long Term Support,” meaning that..
See more- 55 views
- 0 Comments
Phalcon Framework
1. What is Phalcon Framework? PHP C-extension (Phalcon) is a PHP framework built from C. Because it is built using C, the framework is very fast and has high performance, capable of handling about 3000 requests per second. We only need to know PHP to work with Phalcon easily. Phalcon is very easy to learn..
See more- 57 views
- 0 Comments
WordPress
1. What is WordPress? ◆ WordPress is an open-source software written in PHP (Hypertext Preprocessor) and uses the MySQL database management system. WordPress was first released on May 27, 2003 by its authors Matt Mullenweg and Mike Little. Currently, WordPress is owned and developed by Automattic, a company based in San Francisco, California, USA. ◆..
See more- 51 views
- 0 Comments
PHP isset() vs empty() vs is_null()
Credit: https://techtalk.virendrachandak.com/php-isset-vs-empty-vs-is_null/ PHP has different functions which can be used to test the value of a variable. Three useful functions for this are isset(), empty() and is_null(). All these function return a boolean value. If these functions are not used in correct way they can cause unexpected results. isset() and empty() are often viewed as functions that are opposite,..
See more- 105 views
- 0 Comments
