current location:Home > Technical Articles > Daily Programming > PHP Knowledge

  • How to Build an API-Only JWT-Powered Laravel App
    How to Build an API-Only JWT-Powered Laravel App
    This Laravel API Boilerplate (JWT Edition) tutorial guides you through building a book wishlist application's API. It leverages existing components like Dingo API, JWT-Auth, and Laravel's CORS support. Key Features: Utilizes the Laravel API Boiler
    PHP Tutorial . Backend Development 483 2025-02-15 09:30:11
  • Building a SparkPost Client: TDD with PhpUnit and Mockery
    Building a SparkPost Client: TDD with PhpUnit and Mockery
    This post explores building a SparkPost client using PHP, PHPUnit, and Mockery, emphasizing Test-Driven Development (TDD). It guides you through creating a client that interacts with the SparkPost API to send emails. Key Concepts: TDD: Tests are w
    PHP Tutorial . Backend Development 314 2025-02-15 09:25:12
  • Your Own Custom Annotations - More than Just Comments!
    Your Own Custom Annotations - More than Just Comments!
    PHP Custom Annotations: Enhanced Code Flexibility and Scalability This article discusses how to create and use custom annotations in Symfony 3 applications. Annotations are the document block metadata/configuration we see above classes, methods and properties. They are often used to declare controller routing (@Route()), Doctrine ORM mapping (@ORM()), or control Rauth and other packages. Types and methods of access. This article will explain how to customize annotations and read class or method information without loading the class. Key points: PHP custom annotations can be used to add metadata to your code, affecting your code behavior, making it more flexible and easier to adapt. They can be used to define routing information, specify verification rules, or configure dependency injection.
    PHP Tutorial . Backend Development 920 2025-02-15 09:22:12
  • Contributing to Open Source: Gatekeeper Case Study
    Contributing to Open Source: Gatekeeper Case Study
    Contributing to open source projects: A practical case This article will use a practical case to explain in detail how to contribute code to open source projects. We will take the GateKeeper library as an example to add a counting function and gradually demonstrate the entire process, including communication with the project owner, code implementation, testing, and submitting Pull Request. Introduction to GateKeeper Library GateKeeper is a PHP library for user registration, authentication, and authorization. It uses its own database to store and query user records. This makes it completely decoupled from the main application, making it easy to scale and modify. Add counting function At present, if GateKeeper wants to obtain the total number of users in the database, it needs to obtain all users first
    PHP Tutorial . Backend Development 319 2025-02-15 09:20:12
  • Do PHP and IoT Have a Future Together?
    Do PHP and IoT Have a Future Together?
    Key Advantages of PHP in IoT Development PHP's versatility, scalability, and robust features make it a surprisingly effective choice for Internet of Things (IoT) projects. Its extensive library support simplifies complex tasks, database management,
    PHP Tutorial . Backend Development 618 2025-02-15 09:16:13
  • How to Consume Laravel API with AngularJS
    How to Consume Laravel API with AngularJS
    This tutorial demonstrates building a single-page application (SPA) frontend using AngularJS to interact with a Laravel API backend. The resulting application manages a book wishlist, allowing users to add, update, and delete entries. Key Features:
    PHP Tutorial . Backend Development 457 2025-02-15 09:15:12
  • Building a Hacker News Reader with Lumen
    Building a Hacker News Reader with Lumen
    This tutorial guides you through building a Hacker News reader using the Hacker News API and the Lumen framework. The finished product displays news items in a user-friendly format. Key Features: Leverages Lumen's speed and simplicity for efficien
    PHP Tutorial . Backend Development 403 2025-02-15 08:56:11
  • Easy Deployment of PHP Applications with Deployer
    Easy Deployment of PHP Applications with Deployer
    This article has been updated for the latest Deployer version (as of March 26th, 2017). Automating development workflows, including testing, code styling, and system checks, is a common practice. Deployment automation, moving new application versio
    PHP Tutorial . Backend Development 934 2025-02-15 08:54:12
  • Easy Multi-Language Twig Apps with Gettext
    Easy Multi-Language Twig Apps with Gettext
    This tutorial demonstrates how to add multi-language support to a PHP application using Twig and Gettext. It's significantly faster than userland solutions like Symfony's translation component. We'll modify a pre-existing English-only application (n
    PHP Tutorial . Backend Development 629 2025-02-15 08:42:10
  • Quick Tip: Testing Symfony Apps with a Disposable Database
    Quick Tip: Testing Symfony Apps with a Disposable Database
    Key Points The in-memory database exists only in application memory and is a practical solution to test code that interacts with the database. They are easy to set up with Symfony applications using Doctrine and are ideal for testing due to their discardability. Symfony's test environment configuration allows the creation of discardable test databases. The configuration file that needs to be edited to set these databases is app/config/config_test.php. Support for in-memory databases using SQLite3 can facilitate testing by sending SQL queries to functional databases, eliminating the need to mock the repository classes. When using an in-memory database in a test class, you must first build a model
    PHP Tutorial . Backend Development 744 2025-02-14 10:22:11
  • PHP, Arduino And... Minecraft? Combining Minecraft with PHP!
    PHP, Arduino And... Minecraft? Combining Minecraft with PHP!
    This tutorial demonstrates building a real-world alarm system for a virtual Minecraft mansion using PHP and Arduino. Let's explore how it works. Key Concepts: Minecraft Redstone Circuitry: A virtual circuit within Minecraft, using Redstone (a game
    PHP Tutorial . Backend Development 512 2025-02-14 10:14:11
  • Can We Have Static Types in PHP without PHP 7 or HHVM?
    Can We Have Static Types in PHP without PHP 7 or HHVM?
    This article explores the challenges of type safety in PHP 5 and introduces the "augmented types" extension as a solution. While PHP 7 offers built-in scalar type declarations, this extension provides similar functionality for older PHP ve
    PHP Tutorial . Backend Development 905 2025-02-14 10:08:11
  • Hassle-Free Filesystem Operations during Testing? Yes Please!
    Hassle-Free Filesystem Operations during Testing? Yes Please!
    Virtual File System (VFS) simulates file system operations in unit tests, avoiding the hassle of cleaning temporary files. This article describes how to use the vfsStream library to simplify the testing of file system operations in PHP unit tests. First, we have a simple FileCreator class for creating files:
    PHP Tutorial . Backend Development 366 2025-02-14 09:50:12
  • Powering Raspberry Pi Projects with PHP
    Powering Raspberry Pi Projects with PHP
    This guide shows how to use a Raspberry Pi, a compact computer running Raspbian Linux, to create interactive web applications that control and respond to electronic inputs and outputs. The Pi's GPIO pins allow connection to electronic circuits, enab
    PHP Tutorial . Backend Development 1045 2025-02-14 09:49:12
  • Testing Your Tests? Who Watches the Watchmen?
    Testing Your Tests? Who Watches the Watchmen?
    Whether you are working for a large enterprise, a startup, or yourself, unit testing is not only useful, but is often indispensable. We use unit tests to test the code, but what if our tests are wrong or incomplete? What can we use to test our tests? Who will supervise the inspector? Key Points Variation testing is a technique that evaluates its quality with a small number of modified tests and can be used to test the test itself. It involves creating a "variant" or variant of the original test and checking if these changes are detected by the test. Humbug is a variant testing framework for PHP that can be used to generate code coverage. However, it is PHPUnit-specific and may have problems for users using different testing frameworks
    PHP Tutorial . Backend Development 362 2025-02-14 09:41:10

Tool Recommendations

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 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 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 is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

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
backend template
2023-02-02

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
Bootstrap template
2023-02-02

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)

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)

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)

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 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 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 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

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