Php

Php posts, videos, courses, and more

Bobby Iliev

2 weeks ago

View Post

Use Composer like a Pro - the Dependency Manager for PHP

Introduction Composer is without the go to dependency manager for PHP. Composer is a command line tool that you can use to install packages to your projects and also update and manage existing packages. If you are coming the JavaScript world you could consider composer as the dependency manager for PHP similar to NPM for JavaScr...
Use Composer like a Pro - the Dependency Manager for PHP
11
Select One:

Bobby Iliev

1 month ago

View Post

The 10 Most Popular PHP Frameworks and Their Creators

Introduction It would be really intimidating if you had to start from scratch and reinvent the wheel every time you were to start a new project. Luckily in 2021 there is a vast number of brilliant PHP frameworks out there that you can use. In my opinion using a framework is a must as it would help you structure your project, so...
The 10 Most Popular PHP Frameworks and Their Creators
5
Select One:

Vlad Pasca

2 months ago

View Post

Web developer roadmap in 2021 and beyond

If you found value in this thread you will most likely enjoy my tweets too so make sure you follow me on Twitter for more information about web development and how to improve as a developer. 1. Learn how the internet works Zero to mastery playlist MDN Introduction 2. Learn HTML HTML Crash Course For Absolute Beginners Basic HTML...
Web developer roadmap in 2021 and beyond
1
Select One:

Tina Hammar

3 months ago

View Post

Generate random color gradient background

When users fail to adhere to your imaginary design guide you need to arm yourself to keep the look you aimed for when creating your website. In this article I'll share one of my favourite secret design weapons :) The missing image Let's pretend you made this astonishing blog grid: You'll be disappointed when users don't attach...
Generate random color gradient background
9
Select One:

Bobby Iliev

3 months ago

View Post

How to create an eBook from Markdown using Ibis?

Introduction A few months ago I wrote an open-source eBook on how to get started with Bash Scripting. This is when I came across a tool called Ibis created by Mohamed Said who is a Developer at Laravel. Ibis allows you to generate an awesome PDF for your eBook, and you can just use markdown! In this tutorial, I will show you how...
How to create an eBook from Markdown using Ibis?
7
Select One:

Tina Hammar

3 months ago

View Post

Dabbling with JSON, Object and Array conversions

This article mostly mentions working with JSON data, but the helpers we will create, are also very useful when you want to convert between stdClass objects and Arrays. The syntax for handling JSON data in php can feel overwhelming. On the other hand, indexed php arrays aren't nice on your keyboard either. In applications where...
Dabbling with JSON, Object and Array conversions
3
Select One:

Bobby Iliev

3 months ago

View Post

Quick Introduction to PHP OOP Basics Crash Course

Introduction OOP stands for Object-Oriented Programming and it is used by almost all of the major programming languages. For example, PHP, Phyton, Java, C#, and many more. If you don't know what OOP is and how it works, don't worry. We are going to show you and explain what OOP is used for. As OOP is so widely used, you should g...
Quick Introduction to PHP OOP Basics Crash Course
10
Select One:

Bobby Iliev

4 months ago

View Post

What is the $this keyword and how to use it in PHP

Introduction The $this keyword is one of the most important and helpful things in PHP OOP(Object Oriented Programming). And unfortunately, it's one of those things that get overlooked. Many people may have heard of this keyword but don't know how to use it. In this post, I am going to briefly explain what the $this keyword is an...
What is the $this keyword and how to use it in PHP
12
Select One:

Bobby Iliev

5 months ago

View Post

Why you should become a web developer

Introduction These days there are so many career choices to take in the programmer world. But one of the most successful and important ones is Web Development. There are so many companies out there that are on the constant look for web developers and designers. And the good thing is that these companies and businesses are increa...
Why you should become a web developer
11
Select One:

Tony Lea

6 months ago

View Episode

Dependency Injection in 60 seconds

Dependency Injection allows developers to pass classes or objects to a constructor or method. The dependency (class) is injected into the method.Utilizing Dependency injection can help keep our Classes loosely coupled and managed.You can learn more about the Laravel Dependency Injection by visiting: https://laravel.com/docs...
Dependency Injection in 60 seconds
4
Select One:

Tony Lea

6 months ago

View Post

Laravel Gates

Laravel Gates allows you to authorize users from accessing certain areas of your application. You can easily define gates in your application and then use them to allow or deny access. Let's start things off with a simple example of granting access without Gates, and then you'll see how we can use Gates as an alternative. Simple...
Laravel Gates
7
Select One:

Bobby Iliev

6 months ago

View Post

How to generate title slugs in Laravel?

Introduction If you are not sure what a slug exactly is, you should go through this post here first: https://devdojo.com/devdojo/what-is-a-slug There are many reasons why you would want to have a nice slug for your posts rather than accessing them via their ID, for example. In this tutorial, you will learn how to use the title o...
How to generate title slugs in Laravel?
9
Select One:

Kim Hallberg

7 months ago

View Post

Let's validate some DNS TXT records. 👍

Here's a scenario, let's say you have users. And those users can sell domains, or maybe add their domains to their profile. Now you can validate that they own that domain multiple ways. You could have them send a picture of the dashboard showing the domain. Or you could have them create a page just for you. While both of these s...
Let's validate some DNS TXT records. 👍
10
Select One:

Kim Hallberg

8 months ago

View Post

Creating default user initial avatars in PHP 7

This post had some traction on my dev.to profile, so I thought, why not add it here as well. What are "default" avatars? When it comes to user-uploaded material, such as avatars, for instance, some users might refrain from uploading one and, in those instances providing a sensible fallback is an appropriate thing to do...
Creating default user initial avatars in PHP 7
9
Select One:

Tony Lea

9 months ago

View Course

Laravel 7 Basics

In this video series I will teach you the basics about Laravel 7. This series is for anyone who does not know Laravel and wants to learn the basics. You will need to know the basics of PHP to get the most out of this series.In this beginner Laravel series we will be covering the following:
Laravel 7 Basics
14
Select One:

Tony Lea

9 months ago

View Course

PHP Basics

In this course you are going to learn the basics of PHP. In this course we'll cover the following topics:
PHP Basics
7
Select One:

Bobby Iliev

10 months ago

View Post

How to Create Custom Laravel Maintenance Page?

Introduction More often than not you would need to perform some maintenance for your Laravel website. Luckily Laravel makes it super easy to put your application in maintenance mode! In this tutorial, I will show you how to do that, and also how to change the default Laravel maintenance page with a custom maintenance page that m...
How to Create Custom Laravel Maintenance Page?
8
Select One:

Tony Lea

10 months ago

View Post

Why developers hate PHP

I am a developer and I'm also very fond of PHP, which seems to get dragged through the mud a lot. I used to refrain from telling people that I was a "PHP" developer, afraid that I would get mentally classified as "that kind of developer". Why does PHP have such a bad reputation? Is PHP dead? Should people st...
Why developers hate PHP
11
Select One:

Bobby Iliev

11 months ago

View Post

Fun tech quiz questions directly in your terminal

Introduction Quizzes are a great way to test your knowledge on a specific topic. So I decided to create a tool called the Quiz API! Quiz API is a simple HTTP REST API for technical quizzes including a wide variety of topics like: Linux, DevOps, Programming (PHP, JS, Python and etc.), Docker, Kubernetes and lots more! It is free...
Fun tech quiz questions directly in your terminal
7
Select One:

Ghost

1 year ago

View Post

Top PHP Frameworks and Tips to hire a PHP developer

FrameworkFrameworkPHP (Hypertext Preprocessor) is the oldest and widely used programming language. Presently, many businesses are opting for the PHP language for their website to mark the online presence. It turns the development process simpler and reduces time and cost. Reason for PHP Popularity Countless number of frameworks...
Top PHP Frameworks and Tips to hire a PHP developer
1
Select One:

Bobby Iliev

1 year ago

View Post

Laravel App on Digital Ocean Ubuntu 19.04 droplet (Step by Step Guide)

This is a step by step guide on how to create a new droplet via your Digital Ocean control panel, manually install and configure your LAMP stack, deploy Laravel and then install Voyager.We will go though the following steps:
Laravel App on Digital Ocean Ubuntu 19.04 droplet (Step by Step Guide)
6
Select One:

Ghost

1 year ago

View Post

The Utility of PHP Generators

A generator in PHP is a function that allows us to iterate over data without needing to build an array in memory. Unlike a standard function, which can return only a single value, a generator can yield multiple values.When Should I Use a Generator in PHP?It's fairly common to retrieve data from an API, store it in an array, and...
The Utility of PHP Generators
1
Select One:

Tony Lea

2 years ago

View Post

Installing PHP on Windows

Most tutorials for installing PHP on Windows involves installing MAMP or XAMP, which are great solutions; however, sometimes you may want a solution to install PHP by itself. If so, this tutorial is for you. In this tutorial I'll show you how easy it is to install PHP on Windows in 3 steps.1. Download and Install PHPFirst y...
Installing PHP on Windows
1
Select One:

Amine Dev

2 years ago

View Post

How to run a php script in background

How to run a php script in backgroundWhen we need to run some script without waiting the fronted user till the process is not completed, For that we need to execute some script in background to hiding the execution time to user.This process is hidden to the end user. It improves your Website efficiency.The concept, In LINUX ther...
How to run a php script in background
Select One:

Amine Dev

2 years ago

View Post

Laravel Telescope

IntroductionTelescope is a new wizard to debug a Laravel application. It gives us access to a wealth of information on the queries that enter the application, exceptions, queries to the database, queues, mails, notifications, cache ...Telescope is still in the beta stage but it is already widely used. I propose in this article t...
Laravel Telescope
1
Select One:

Amine Dev

2 years ago

View Post

laravel -- Localisation

When creating a site it is often in a multi-language perspective. This is called internationalization (i18n) and localization (L10n). Internationalization is about preparing an application to make it potentially suitable for different languages. Localization consists of adding a language-specific component.This is a rather compl...
laravel -- Localisation
Select One:

Wael Manai

2 years ago

View Post

Getting a user’s country, currency, timezone or language from their IP address

In many projects in the past, when I’ve had to use a Geo IP API service to look up a user’s IP address, it was usually for one of several reasons — getting the user’s country (for geo-locking certain features, or defaulting to certain sections or categories of the site), defaulting a user’s created account to a certain currency,...
Getting a user’s country, currency, timezone or language from their IP address
Select One:

Dev Dojo

3 years ago

View Post

Custom Global Helpers in Laravel

Laravel has some pretty awesome helpers. You've probably used them several times throughout your application. For instance to get the current URL you can use the url() helper, or to return a user back to the previous page you can use the back() helper. These helpers really are... Well, helpful. But, there are some special condit...
Custom Global Helpers in Laravel
Select One:

Tony Lea

3 years ago

View Episode

The PHP Singleton Class

In this video we will show you how to create a PHP singleton class and why you may want to use it. We'll show you how to create a basic class and a similar implementation with a singleton class.A Singleton class is instantiated by itself and does not have multiple instances like a normal class.You can find the source code to the...
The PHP Singleton Class
Select One:

Dev Dojo

3 years ago

View Post

Laravel Notifications

Notifying users of various things that happen in your application is super easy to implement thanks to Laravel Notifications. Laravel notifications allow you to send a message to any user via Email, Slack, SMS, and many other channels. Creating a Notification To create a new notification you can run the following artisan command...
Laravel Notifications
Select One:

Loading More Content

Back to DevDojo