current location:Home > Technical Articles > Daily Programming > PHP Knowledge
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
- PHP tutorial MySQL Tutorial HTML Tutorial CSS Tutorial
-
- 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
- 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!
- 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 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?
- 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
- 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
- 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
- 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
- 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
- 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!
- 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?
- 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!
- 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
- 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?
- 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