PHP Archives - Codebriefly https://codebriefly.com/tag/php/ Tech Magazine Tue, 29 Jun 2021 18:45:39 +0000 en-US hourly 1 Create Time Slots in PHP for Given Time https://codebriefly.com/create-time-slots-in-php-for-given-time/ https://codebriefly.com/create-time-slots-in-php-for-given-time/#respond Tue, 29 Jun 2021 18:45:39 +0000 https://codebriefly.com/?p=2378 PHP

In this article, we will discuss “Create Time Slots in Php”. Check the following code snippet. With this code, we can create time slots for a given interval and time range. function getTimeSlot($interval, $start_time, $end_time) { $start = new DateTime($start_time); $end = new DateTime($end_time); $startTime = $start->format('H:i'); $endTime = $end->format('H:i'); $i=0; $time = []; while(strtotime($startTime) […]

The post Create Time Slots in PHP for Given Time appeared first on Codebriefly.

]]>
https://codebriefly.com/create-time-slots-in-php-for-given-time/feed/ 0
How Laravel Traits are Different from the Helpers in PHP https://codebriefly.com/how-laravel-traits-are-different-from-the-helpers-in-php/ https://codebriefly.com/how-laravel-traits-are-different-from-the-helpers-in-php/#comments Tue, 30 Mar 2021 17:20:55 +0000 https://codebriefly.com/?p=2123 How Laravel Traits are Different from the Helpers in PHP

In this article, we will discuss “How Laravel traits are different from the helpers in PHP“. Traits have been mainly added to PHP as PHP never allows multiple inheritances i.e., a class couldn’t expand more than one class at once. This becomes laborious when you need functionality declared in two different classes that are being […]

The post How Laravel Traits are Different from the Helpers in PHP appeared first on Codebriefly.

]]>
https://codebriefly.com/how-laravel-traits-are-different-from-the-helpers-in-php/feed/ 1
Difference Between FULL, MEAN and MERN Stack Development https://codebriefly.com/difference-between-full-mean-and-mern-stack-development/ https://codebriefly.com/difference-between-full-mean-and-mern-stack-development/#comments Sat, 12 Jan 2019 18:14:53 +0000 https://codebriefly.com/?p=1660 Difference Between FULL, MEAN and MERN Stack Development

In this article, we will discuss the “Difference Between FULL, MEAN and MERN Stack Development”. The word ‘stack’ came from the word ‘LAMP’ stack that is an abbreviation for technologies like “Linux, Apache, MySQL, and PHP“. As we know Linux is a famous powerful Operating System and Apache provides valuable security added a multi-featured server, MySQL is […]

The post Difference Between FULL, MEAN and MERN Stack Development appeared first on Codebriefly.

]]>
https://codebriefly.com/difference-between-full-mean-and-mern-stack-development/feed/ 1
How to Handle Multiple PHP Versions with Apache Server on Windows https://codebriefly.com/how-to-handle-multiple-php-versions-with-apache-server-on-windows/ https://codebriefly.com/how-to-handle-multiple-php-versions-with-apache-server-on-windows/#comments Fri, 04 Jan 2019 19:42:13 +0000 https://codebriefly.com/?p=1646 Multiple PHP Version with Windows

In this article, we will discuss “How to Handle Multiple PHP Versions with Apache Server on Windows”. As previous, I’m sharing an article where you learn how to set up Apache, PHP, and MySql on windows. So I recommend you to start with our previous article for a better understanding. Because in this article, I’m not adding the […]

The post How to Handle Multiple PHP Versions with Apache Server on Windows appeared first on Codebriefly.

]]>
https://codebriefly.com/how-to-handle-multiple-php-versions-with-apache-server-on-windows/feed/ 4
Laravel Socialite GitHub Login (Part 3) https://codebriefly.com/laravel-socialite-github-login-part-3/ https://codebriefly.com/laravel-socialite-github-login-part-3/#respond Mon, 31 Dec 2018 18:03:22 +0000 https://codebriefly.com/?p=1636 Laravel Socialite GitHub Login

In this article, we will discuss “Laravel Socialite GitHub Login”. In this Laravel Socialite series, we already discussed Twitter and LinkedIn social login in our previous articles. Laravel Socialite GitHub Login Prerequisites You need to read out our previous posts on Laravel Socialite series. Laravel Socialite Twitter Login Laravel Socialite LinkedIn Login Create GitHub Application Time […]

The post Laravel Socialite GitHub Login (Part 3) appeared first on Codebriefly.

]]>
https://codebriefly.com/laravel-socialite-github-login-part-3/feed/ 0
Laravel Socialite LinkedIn Login (Part 2) https://codebriefly.com/laravel-socialite-linkedin-login-part-2/ https://codebriefly.com/laravel-socialite-linkedin-login-part-2/#respond Tue, 25 Dec 2018 18:28:07 +0000 https://codebriefly.com/?p=1605 Laravel Socialite LinkedIn Login

In this article, we will discuss “Laravel Socialite LinkedIn Login”. We already discuss the Laravel Socialite in our previous post, where we describe the Twitter login process. So in this post, we will not be discussing the common process. Laravel Socialite LinkedIn Login Prerequisites Please read out my previous post “Laravel Socialite Twitter Login“, here you get basic […]

The post Laravel Socialite LinkedIn Login (Part 2) appeared first on Codebriefly.

]]>
https://codebriefly.com/laravel-socialite-linkedin-login-part-2/feed/ 0
Laravel Socialite Twitter Login (Part-1) https://codebriefly.com/laravel-socialite-twitter-login-part-1/ https://codebriefly.com/laravel-socialite-twitter-login-part-1/#comments Thu, 20 Dec 2018 19:59:49 +0000 https://codebriefly.com/?p=1588 Laravel Socialite Twitter Login

In this article, we will discuss “Laravel Socialite Twitter Login”. As we already discussed, Laravel is not only PHP framework. It’s like a lifesaver tool for the developer. If you are new in Laravel then you can start with our previous articles. Laravel also provide a simple and convenient way to authenticate with OAuth providers using Laravel Socialite. […]

The post Laravel Socialite Twitter Login (Part-1) appeared first on Codebriefly.

]]>
https://codebriefly.com/laravel-socialite-twitter-login-part-1/feed/ 5
Modern PHP Security Excellent Benefits https://codebriefly.com/modern-php-security-excellent-benefits/ https://codebriefly.com/modern-php-security-excellent-benefits/#respond Thu, 01 Nov 2018 18:47:37 +0000 https://codebriefly.com/?p=1446 Modern PHP Security Excellent Benefits

In this article, we will discuss “Modern PHP Security Excellent Benefits”. PHP significantly reduces many things like security issues, time issues, and garbage issues throughout the development of projects. It links well to the database management system like SQL, Oracle, and Sybase to provide efficient data storage and interaction services. Hence, most of the clients chose PHP technology-based […]

The post Modern PHP Security Excellent Benefits appeared first on Codebriefly.

]]>
https://codebriefly.com/modern-php-security-excellent-benefits/feed/ 0
How to Setup Apache, PHP & MySql on Windows 10 https://codebriefly.com/how-to-setup-apache-php-mysql-on-windows-10/ https://codebriefly.com/how-to-setup-apache-php-mysql-on-windows-10/#comments Mon, 29 Oct 2018 19:14:01 +0000 https://codebriefly.com/?p=1442 How to Setup Apache, PHP & MySql on Windows 10

In this article, we will discuss “How to Setup Apache, PHP & MySql on Windows 10″.  When you are planning to install Apache, PHP & MySQL on Windows 10 machine, then We have two options to do this as given below: You can setup Xampp or Wamp server which enables all the feature as per our requirement. […]

The post How to Setup Apache, PHP & MySql on Windows 10 appeared first on Codebriefly.

]]>
https://codebriefly.com/how-to-setup-apache-php-mysql-on-windows-10/feed/ 19
Google Map API – Get Geolocation using City/Locality https://codebriefly.com/google-map-api-get-geolocation-city-locality/ https://codebriefly.com/google-map-api-get-geolocation-city-locality/#respond Wed, 18 Jul 2018 18:33:19 +0000 https://codebriefly.com/?p=920 get geolocations city locality

In this post, we will discuss Google Map API – Get Geo Location using City/Locality. I’m assuming, most users are familiar with the Google Maps. Google provides a flexible API to work with the Maps easily. If you want to know more about Google Map API just click here. Today, I’m going to share a function which used […]

The post Google Map API – Get Geolocation using City/Locality appeared first on Codebriefly.

]]>
https://codebriefly.com/google-map-api-get-geolocation-city-locality/feed/ 0