This program is for complete inexperienced persons and will give you a fantastic kickstart to learning PHP.
We are going to first converse about what PHP is and why we ought to study it, then we will set up a functioning environment and start coding
This video clip handles all the fundamental principles:
– How to declare Variables
– How to do the job with strings, Arrays
– How to perform with file Procedure
– How to use cURL to fetch methods
– Object Oriented PHP
– Namespaces
– Composer
– Autoloading
and significantly a lot more…
At the close of this study course we will make a CRUD (Make, Go through, UPDATE, DELETE) software 3 instances. To start with, we will create it as rookie and see what PHP code looks like without best techniques, then we will refactor our software and make it more optimum. We will discover how to use composer, autoloading and we are going to make a mini MVC framework with custom routing and then create the final variation of our CRUD software utilizing the framework
Code:
Preliminary Source data files:
Final Supply data files:
The Codeholic YouTube Channel:
Official Docs:
Figures –
Strings –
Arrays –
File Process –
Timestamps:
00:00:00 – Introduction
00:02:45 – Program Overview
00:06:19 – What is PHP and why you really should discover it?
00:09:02 – Setup doing the job environment
00:22:45 – PHP Syntax
00:25:50 – Responses
00:26:58 – Variables
00:35:45 – Numbers
00:47:53 – Strings
01:01:07 – Arrays
01:14:09 – Associative Arrays
01:21:44 – Conditionals (If-else, change)
01:30:59 – Loops
01:38:22 – Functions
01:45:43 – Dates
01:50:36 – Together with files
01:58:43 – Doing work with File Method
02:08:01 – OOP
02:25:46 – cURL
02:33:53 – Start off performing on Products CRUD (negative variation)
02:42:05 – Set up relationship to database
02:45:36 – Select & show products from MySql
02:52:28 – Products CRUD: Creating Product functionality
02:56:50 – $_GET & $_Write-up
03:04:04 – Conserve knowledge in MySql
03:13:45 – Variety Validation
03:21:10 – Uploading Impression
03:39:37 – Delete Products
03:46:01 – Update Products
03:58:22 – Product Lookup
04:02:24 – Strengthen Merchandise CRUD: Code refactoring
04:38:30 – Namespaces & Autoloading with composer
04:49:10 – Install packages using composer
04:53:10 – MVC Framework with Tailor made Routing
04:56:15 – MVC Controllers
05:13:10 – MVC Views
05:31:25 – MVC Designs
06:02:13 – Set up Apache Virtual Hosts
06:11:07 – Sessions
06:20:55 – Cookies
This is the channel which inspired me in creating my own YouTube channel. It is an absolute honor creating content for TraversyMedia.
Huge Thanks to Brad for that opportunity.
It was a very useful course. Thanks to Traversy Media
just finished the course. Thank you so much
Thank you sir
† ქრისტე აღსდგა! †
I am a newbie and before starting this tutorial I had already had a biased opinion about PHP due to the developer community noise but I have changed my opinion and I think Php language is a pretty easy language to understand if you just take your time.
一加牌面
my php path doesnt show up in command prompt windows 8
And this is how Laravel was made
Weird way of teaching
it has been a year now, i was learning this language 3 weeks ago and non of what i have been seen in other courses is here why i hate php i truly do , there is just so many things to do and to learn, F WORD TO PHP
What the theme name and font ? (sorry 😀 )
Awesome 👍
I have a question. I already have installed a MySQL server. Do I need to install it again with xamp, as if it was running a separate instance, or not and just use the already existing server in the pc?
love u sir, thanks for this awesome tutorial
is this course for Beginners what can called advance?
I don't understand the overall purpose of the second half of the cURL section or what was achieved. Could have been explained better.
The Upload Image section gets messy fast. The same file is handling Get and Post and getting the image from Files. I realize the point is to probably highlight why not to do it like this, but I think it may open people following up to more issues in trying to refactor the bad code later on. Maybe it's better just to start the right way. A smaller thing I also noticed is that only the image is unlinked and it's randomised parent directory isn't removed.
Very nice explanation but last 1 and half is waste and you are not explaining as a beginner can understand
this is the first video that i have seen which is actually a "crash course". All the basics are included…wonderful. Love the flow of the video too…from the start to the end it is a grand journey!
A very nice channel that I will recommend to you are the training sets that develop php named php turkey. I strongly recommend you to take a look.
<?php
function sum(…$numbers)
{
$i = count($numbers);
$lst = $numbers[$i – 1];
return $lst * ($lst++) / 2;
}
$result = sum(1, 2, 3, 4, 5, 6, 7);
echo $result;
How can u help us build our own version of African Facebook?
can you switch to different PHP versions in VScode? cannot see that option..
timestamp 1:43:11
Thank you for the video really helpful, just giving another solution how to make function to calculating numbers in PHP Maybe will help any one
function sum(…$numbers){
if(! $numbers){
return;
}
$nums = implode('+', $numbers);
$return = eval("return $nums;");
return $return;
}
echo sum(1, 255, 100, 955);
i don't know why, but my php is showing error for
public array $getRoutes = [];
public array $postRoutes = [];
Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) in C:wamp64wwwphp-crash-course-202014_product_crud 3_goodRouter.php
at 05:03:00
Hey Team, I need assistance.. I am trying to display variables such as age, isMale and height but it still doesn't work. Kindly help : <?php
//Declare variables
$name = 'PHP';
$age = 28;
$isMale = true;
$salary = null;
$height = 1.8;
echo'<br>';
echo $name.'<br';
echo $age.'<br';
echo $isMale.'<br';
echo $salary.'<br';
echo $height;
?>
</body>
</html>
Super cours Merci ! Bon pédagogue !!!
When you write dump , echo 'pre' … echo '/pre' part is autofilled. How can I get this feature in vs code?
Thank you Sir
Poor explanation . Where is boss travesy he is one of the best tutor and I have learnt a lot from him.
source code link is not working 🙁
What VS plugin you are using that helps in definfing php in 54:26
Damn, this video cover all my school year in 6 hours.
PHP is everywhere, you definitely need to use it. I found out the hard way…. now I need to learn everything so I can refactor a shit ton of existing code on a shitty website at work with zero hand-holding. Wish me luck 😀