Sling Academy
Home/PHP/Page 3

PHP

PHP is a popular scripting language for web development. It can create dynamic and interactive web pages by running on the server and sending HTML to the browser. It is free, fast, and flexible,

i18n in Laravel: A Practical Guide (with Examples)

Updated: Feb 13, 2024
Introduction Laravel, a powerful MVC PHP framework, is known for its ease of use and flexibility, especially when it comes to building scalable and maintainable web applications. Internationalization (i18n) is a feature that’s......

Laravel: Generating sample users with passwords using Faker

Updated: Feb 13, 2024
Introduction When building web applications, having sample data for testing and presentation can be invaluable. Laravel, a popular PHP framework for web development, provides an elegant solution to handle such needs with the help of a......

Laravel: How to create custom Faker providers

Updated: Feb 13, 2024
Introduction When working with test data in Laravel, the Faker library is an invaluable tool for generating a wide variety of mock data for your application. However, there might be cases where the default Faker data types do not meet......

Laravel & Eloquent: Seeding a CSV file into a MySQL database

Updated: Feb 13, 2024
Overview In this tutorial, we will explore how to seed a CSV file into a MySQL database using Laravel, a popular PHP framework well-known for its elegant syntax and robust features. Laravel’s Eloquent ORM makes interacting with......

Laravel: Using Faker to Seed Sample Data (for Testing & Practice)

Updated: Feb 13, 2024
Introduction When working on a Laravel application, populating your database with realistic sample data is invaluable for testing and development. One of the most elegant and convenient ways to achieve this is through the use of the......

Laravel + Blade: How to Render Array Data with Tables

Updated: Feb 06, 2024
Introduction In this comprehensive guide, we will explore how to efficiently render array data within tables using Laravel, a prominent PHP framework, and its templating engine, Blade. Laravel facilitates web application development......

Laravel: Connect to different databases based on routes

Updated: Feb 06, 2024
Introduction Working with a single database is a common scenario for most web applications. However, as applications grow in complexity or need to handle different types of data and services, you might find yourself in need of......

How to Generate QR Codes in Laravel (the right way)

Updated: Feb 05, 2024
Instroduction In modern web development, QR codes serve as a bridge between the online and offline worlds, allowing users to access web content by simply scanning a code with their smartphones. Laravel, a popular PHP framework,......

How to Create and Display a QR Code in Symfony

Updated: Feb 05, 2024
Introduction In this tutorial, we will explore the process of creating and displaying a QR code in a Symfony project. Whether you’re building a web application that generates event tickets, adds a layer of security through......

How to parse/decode QR codes in PHP

Updated: Feb 05, 2024
Overview Quick Response (QR) codes are two-dimensional barcodes that can store information like text, URLs, or other data, readable by devices. They are widely used for their simplicity and fast readability. QR Codes can streamline......

PHP: Rendering JSON data in a HTML table

Updated: Feb 02, 2024
Introduction Ever needed to display JSON data within a web page? This tutorial covers how you can render JSON data into an HTML table using PHP, empowering you to effectively present your data in a structured and readable......

PHP: How to Extract all Headings from HTML Source (2 Ways)

Updated: Feb 02, 2024
Overview Extracting headings from HTML source code can be an essential task for various purposes such as content analysis, SEO optimization, and creating content summaries. PHP, with its powerful set of functions for handling strings......