Join 30,341 other Developers as we Learn, Build, and Grow Together.

Connect with fellow developers and gain access to tools that will help you build a profitable SaaS πŸš€

Sign Up

Php

Php posts, videos, courses, and more

How to get the current date and time in Laravel?

How to get the current date and time in Laravel?

Introduction Working with date and time could be pretty challenging. Luckily we have the Carbon package that makes this super easy! Carbon is a simple PHP API extension for DateTime. You can find more information about Carbon on their official website here. Laravel also provides a lot of handy methods that you could use througho...

Bobby Iliev

4 weeks ago

11
Select One:
How to Get the Base URL in Laravel?

How to Get the Base URL in Laravel?

Introduction Hardcoding the domain name in your Blade files or in your controllers is not a good practice. If you ever decided to change your website's domain name, you would have to manually go over all of your files and change the references of your website from the old domain to the new one. This is why Laravel provides a cle...

Bobby Iliev

1 month ago

9
Select One:
How to create a simple CLI app with MiniCLI.

How to create a simple CLI app with MiniCLI.

In this post we're covering how to create a simple CLI app with the help of MiniCLI. What we'll be creating is a small CLI tool to ping websites. Setting up our requirements. The first thing we do is to create a folder for our new tool, which I'll name ping-cli and require the minicli/minicli package. composer require minicli/mi...

Kim Hallberg

1 month ago

4
Select One:
You don’t necessarily need Composer

You don’t necessarily need Composer

Don't get me wrong, Composer is an amazing product. It has an easy-to-use API for quick autoloading, supports multiple standards, and has autoloading optimization built-in - it even lets you search and require packages easily. It's a reason Composer is the most used package manager for PHP. If your project is a lightweight OOP p...

Kim Hallberg

2 months ago

7
Select One:
Use Composer like a Pro - the Dependency Manager for PHP

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

Bobby Iliev

3 months ago

14
Select One:
The 10 Most Popular PHP Frameworks and Their Creators

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

Bobby Iliev

4 months ago

7
Select One:
Web developer roadmap in 2021 and beyond

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

Vlad Pasca

5 months ago

1
Select One:
Generate random color gradient background

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

Tina Hammar

5 months ago

9
Select One:
How to create an eBook from Markdown using Ibis?

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

Bobby Iliev

5 months ago

8
Select One:
Dabbling with JSON, Object and Array conversions

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

Tina Hammar

5 months ago

3
Select One:
Quick Introduction to PHP OOP Basics Crash Course

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

Bobby Iliev

6 months ago

10
Select One:
What is the $this keyword and how to use it in PHP

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

Bobby Iliev

6 months ago

12
Select One:
Why you should become a web developer

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

Bobby Iliev

7 months ago

11
Select One:
Dependency Injection in 60 seconds

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

Tony Lea

9 months ago

4
Select One:
Laravel Gates

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

Tony Lea

9 months ago

7
Select One:
How to generate title slugs in Laravel?

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

Bobby Iliev

9 months ago

9
Select One:
Let's validate some DNS TXT records. πŸ‘

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

Kim Hallberg

10 months ago

10
Select One:
Creating default user initial avatars in PHP 7

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

Kim Hallberg

10 months ago

9
Select One:
Laravel 7 Basics

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:

Tony Lea

1 year ago

14
Select One:
PHP Basics

PHP Basics

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

Tony Lea

1 year ago

7
Select One:
How to Create Custom Laravel Maintenance Page?

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

Bobby Iliev

1 year ago

8
Select One:
Why developers hate PHP

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

Tony Lea

1 year ago

11
Select One:
Fun tech quiz questions directly in your terminal

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

Bobby Iliev

1 year ago

7
Select One:
Top PHP Frameworks and Tips to hire a PHP developer

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

Ghost

1 year ago

1
Select One:
Laravel App on Digital Ocean Ubuntu 19.04 droplet (Step by Step Guide)

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:

Bobby Iliev

2 years ago

6
Select One:
The Utility of PHP Generators

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

Ghost

2 years ago

1
Select One:
Installing PHP on Windows

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

Tony Lea

2 years ago

1
Select One:
How to run a php script in background

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

Amine Dev

2 years ago

Select One:
Laravel Telescope

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

Amine Dev

2 years ago

1
Select One:
laravel -- Localisation

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

Amine Dev

2 years ago

Select One:

Loading More Content