current location:Home>Technical Articles>Backend Development>PHP Tutorial

  • Top Free PHP Hosting Services
    Top Free PHP Hosting Services
    Top Free PHP Hosting Services: A Comprehensive Guide When starting a new PHP project, free hosting services can be a great way to test ideas without incurring costs. However, it's important to understand their limitations. This article explores
    PHP Tutorial 298 2024-08-01 07:06:32
  • How to run a phpunit unit test with a specific dataset
    How to run a phpunit unit test with a specific dataset
    Today I was running my tests and had a failing test: Tests\Common\BusinessLogic\XXX\XXLogicTest::testInvalidXX with data set #9 ([['dsadsa', 'dsafsdfsd', 1234.23, -1234.23, '', 'dsadsa']]) Failed asserting that 1 matches expected 0. /var/www/html/
    PHP Tutorial 1028 2024-08-01 04:09:02
  • PHP books worth reading
    PHP books worth reading
    PHP is one of those immortal programming languages and also one of the ones with the most job openings on the job market. Most websites in the world are written in PHP or using frameworks or CMS with PHP, such as: Wordpress, Laravel and among others.
    PHP Tutorial 332 2024-07-31 10:24:51
  • Slugs with an ID fallback in Laravel
    Slugs with an ID fallback in Laravel
    Originally posted on my blog, briandouglas.ie Slugs make a URL look legit. No one wants to click on a link that reads like https://mysite.com/blog/1. I'd definitely get hacked if I clicked that. But what if it read https://mysite.com/blog/1/some-aw
    PHP Tutorial 266 2024-07-31 02:35:12
  • Explore the Advantages of Data Transfer Objects (DTOs) and How PHP  Readonly Classes Can Elevate Your Laravel Code
    Explore the Advantages of Data Transfer Objects (DTOs) and How PHP Readonly Classes Can Elevate Your Laravel Code
    In modern web application development, efficiently and securely managing and transferring data is crucial. One design pattern that significantly aids in this process is the Data Transfer Object (DTO). This post will delve into the advantages of using
    PHP Tutorial 1040 2024-07-30 08:59:09
  • Enhancing Object-Oriented Design with Traits, Interfaces, and Abstract Classes
    Enhancing Object-Oriented Design with Traits, Interfaces, and Abstract Classes
    In object-oriented programming, maintaining a clean and modular design is crucial for creating scalable and maintainable applications. By leveraging design patterns and principles, developers can create code that is both flexible and easy to extend.
    PHP Tutorial 590 2024-07-30 07:15:14
  • Part  Mastering Laravel From Fundamentals to Advanced Web Development
    Part Mastering Laravel From Fundamentals to Advanced Web Development
    Mastering Laravel : From Fundamentals to Advanced Web Development Eloquent Relationship: One To One Creating a one-to-one relationship between an author and a profile in Laravel using Eloquent involves several steps, including creating migrati
    PHP Tutorial 232 2024-07-30 06:42:54
  • Bundling Your Symfony UX Twig Components
    Bundling Your Symfony UX Twig Components
    Have you heard about Symfony UX Twig Components? If not, I recommend starting by reading the official documentation to get firsthand understanding. However, in this article, I will give a brief introduction and then quickly jump to today's main topic
    PHP Tutorial 464 2024-07-29 17:46:20
  • A Comprehensive Guide to Testing in Laravel with PHPUnit
    A Comprehensive Guide to Testing in Laravel with PHPUnit
    Introduction to Testing in Laravel Testing is a critical aspect of software development that ensures your application works as intended. Laravel provides a robust testing suite out of the box with PHPUnit, a popular testing framework for PHP. T
    PHP Tutorial 618 2024-07-29 06:56:53
  • Install New Laravel 11
    Install New Laravel 11
    So, you're ready to dive into the world of Laravel 11? Awesome choice! Laravel is a powerful PHP framework that makes web development a breeze. Let's break down the installation process in a way that's easy to understand and follow, no matter your op
    PHP Tutorial 524 2024-07-28 19:15:03
  • Ignore custom indexes on Doctrine DBAL 4
    Ignore custom indexes on Doctrine DBAL 4
    You can create database indexes using #[ORM\Index(fields: ['fieldName'] attribute on the entity file and Doctrine will do the rest to manage the index for you, but I will not talk about that. As your project grows or requires specific requirements,
    PHP Tutorial 284 2024-07-28 00:10:32
  • How to View Your index.php File in a Browser
    How to View Your index.php File in a Browser
    How to View Your index.php File in a Browser To view your index.php file in a browser, you need to run a web server that can interpret PHP files. Here are the steps to do this, with a quick and easy option to get you started immediately.
    PHP Tutorial 727 2024-07-27 22:22:33
  • \'Model Required Fields\' package
    \'Model Required Fields\' package
    With Model Required Fields package, you can get the required model fields, excluding primary keys, nullable fields, and fields with defaults. I first needed this information while working on a large project with no tests or factories and many migrat
    PHP Tutorial 652 2024-07-27 20:58:23
  • Small Clean Application
    Small Clean Application
    This project is a set of class to manage dependency injection of application's part of a clean architecture app, independently of the framework used. Git : https://git.small-project.dev/lib/small-clean-application Packagist : https://packagist.org/
    PHP Tutorial 706 2024-07-27 06:43:22
  • How to easily generate data with Database Seeders in Laravel
    How to easily generate data with Database Seeders in Laravel
    When building an application, be it small, medium, or large. Having test data to play around with in an application is inevitable and important. So let's start from simple to advanced with two different scenarios. i. All applications or the majorit
    PHP Tutorial 228 2024-07-26 04:48:43

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29
HTML5 MP3 music box playback effects

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.
HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29
jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29
Organic fruit and vegetable supplier web template Bootstrap5

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03
Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02
Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02
Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02
Cute summer elements vector material (EPS PNG)

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09
Four red 2023 graduation badges vector material (AI EPS PNG)

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29
Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29
Golden graduation cap vector material (EPS PNG)

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27
Home Decor Cleaning and Repair Service Company Website Template

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09
Fresh color personal resume guide page template

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29
Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
Modern engineering construction company website template

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!