Dave Hollingworth
Dave Hollingworth
  • Видео 118
  • Просмотров 3 028 234
Use Composer to Easily Manage PHP Packages
Learn how to use Composer to manage PHP packages and dependencies.
Please consider supporting my channel: ☕ ko-fi.com/davehollingworth
Topics covered:
• What packages are in PHP
• Using Packagist to find packages
• Installing Composer
• Installing packages with Composer
• Installing specific package versions
• Using Composer version constraints
• composer.json and composer.lock
• The vendor folder
• Requiring packages only in development
Links shown in the video:
‣ getcomposer.org/
‣ packagist.org/
‣ www.php.net/
‣ www.apachefriends.org/
‣ semver.org/
Videos:
‣ Importing namespaced elements with the use operator: ruclips.net/video/GrXtA5zCGFk/видео.html
‣ Send email with PHP: ruclips.net/video/fIYyemqKR58/...
Просмотров: 928

Видео

REST API Authentication with PHP & MySQL | Slim PHP Micro Framework Registration and Login Tutorial
Просмотров 1,1 тыс.21 день назад
Add API key authentication, registration and login to a REST API using the Slim PHP micro framework. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth This is a follow-up video to this video: ruclips.net/video/PHZtujcTRPk/видео.html Topics covered: • How to pass API keys to the API: query string and X-API-Key header • Using middleware to require an API key • PHP templates • Si...
Encrypt and Decrypt Data Securely in PHP: OpenSSL, Sodium & defuse/php-encryption
Просмотров 1,2 тыс.Месяц назад
Learn how to encrypt and decrypt data in PHP. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Topics covered: • Symmetrical encryption and decryption with a private key in PHP • Using OpenSSL • Using Sodium (libsodium) • Using a third-party encryption package All source code shown is free to download: ‣ gist.github.com/daveh/4656141ee026c897c4dcc594fedf51fe Links shown in th...
Dependency Injection in PHP | Create a Service Container from Scratch | Use PHP-DI
Просмотров 2,4 тыс.2 месяца назад
Learn what dependency injection is, and how to do it in PHP. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Topics covered: • Dependency injection • Service containers • Autowiring • Third-party DI containers like PHP-DI All source code shown is free to download: ‣ gist.github.com/daveh/80901d23a6293a7cc4b363d6747b629b Links shown in the video: ‣ laravel.com/docs/10.x/conta...
Parse JSON in PHP | How to validate and process nested JSON data
Просмотров 1,4 тыс.2 месяца назад
Learn what JSON is, and how to process it in PHP. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Topics covered: • JSON • Parsing and validating JSON data in PHP • Nested JSON data All source code shown is free to download: ‣ gist.github.com/daveh/4aef69186bd99a99aa31409844a24a99 Links shown in the video: ‣ www.php.net/manual/en/function.json-last-error.php ‣ www.php.net/ma...
REST API with PHP and MySQL | Full Slim PHP Micro Framework Tutorial
Просмотров 6 тыс.3 месяца назад
In this PHP project, you'll learn how to create a REST API using the Slim micro framework. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Topics covered: • Slim basics • Using third-party packages in Slim • Dependency Injection • Middleware • Slim controllers • Slim configuration All source code shown is free to download: ‣ github.com/daveh/slim-rest-api-example Links shown...
Send an email with an Attachment using PHP | PHP Project with Source Code
Просмотров 2,6 тыс.5 месяцев назад
In this short PHP project, you'll learn how to send an email with an attachment using a PHP email API. All source code shown is free to download. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Code shown in the video: ‣ gist.github.com/daveh/1da54bbd6e993d29b4002e7f029173c5 Links shown in the video: ‣ www.tiny.cloud/ ‣ www.php.net/manual/en/function.move-uploaded-file.php ‣...
PHP Account Activation by Email: Require the User to Confirm their Email Before They Can Log In
Просмотров 8 тыс.6 месяцев назад
Learn how to develop functionality in PHP that requires a user to confirm their email address before they can login. Once they sign up, they'll have to click on a link in an email to activate their account. If they don't do that, they can't login. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth This is part 3 of Signup and Login with PHP and MySQL: Part 1: Signup and Login w...
Send SMS Messages using PHP
Просмотров 22 тыс.7 месяцев назад
In this short PHP project, you'll learn how to send an SMS message to a mobile phone / cellphone using PHP. We'll use two SMS gateway providers, Infobip and Twilio, in order to compare how they work. All source code shown is free to download. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Code shown in the video: ‣ gist.github.com/daveh/6a31d0d28d9aef8c161c6ff1b6d29fae Link...
Simple PHP Stripe Checkout - Securely Accept One-Time Card Payments in your PHP Project
Просмотров 16 тыс.8 месяцев назад
In this short PHP project, you'll learn how to securely accept one-time payments in your PHP web application, using the Stripe payment processing platform. All source code shown is free to download. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Code shown in the video: ‣ gist.github.com/daveh/26b68e4706b2820f5f2279ccce755655 Links shown in the video: ‣ stripe.com/ ‣ github...
Securely Storing PHP Configuration Settings
Просмотров 4,8 тыс.10 месяцев назад
Learn how to securely store configuration settings in a PHP application, using best practices. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Code shown in the video: ‣ gist.github.com/daveh/9e2f2a8a9e82b370388d718d927923de Links shown in the video: ‣ www.12factor.net/config ‣ github.com/vlucas/phpdotenv Gear icons created by Freepik - Flaticon ‣ www.flaticon.com/free-icons...
PHP Password Reset by Email
Просмотров 41 тыс.10 месяцев назад
PHP Password Reset by Email
Generate QR Codes with PHP
Просмотров 24 тыс.Год назад
Generate QR Codes with PHP
PHP File Uploads | The Complete Guide to Uploading Files Using PHP
Просмотров 37 тыс.Год назад
PHP File Uploads | The Complete Guide to Uploading Files Using PHP
Send email with PHP | Create a Working Contact Form Using PHP
Просмотров 121 тыс.Год назад
Send email with PHP | Create a Working Contact Form Using PHP
Generate a PDF with PHP
Просмотров 55 тыс.Год назад
Generate a PDF with PHP
Create a PHP REST API : Write a RESTful API from Scratch using Plain, Object-Oriented PHP and MySQL
Просмотров 81 тыс.2 года назад
Create a PHP REST API : Write a RESTful API from Scratch using Plain, Object-Oriented PHP and MySQL
Signup and Login with PHP and MySQL
Просмотров 261 тыс.2 года назад
Signup and Login with PHP and MySQL
Save HTML Form Data to a MySQL Database using PHP
Просмотров 184 тыс.2 года назад
Save HTML Form Data to a MySQL Database using PHP
What's new in PHP 8.0 | Learn how to use PHP 8.0's new features with real-world examples
Просмотров 9 тыс.2 года назад
What's new in PHP 8.0 | Learn how to use PHP 8.0's new features with real-world examples
How to use a REST API from PHP using cURL | Full PHP cURL API tutorial
Просмотров 35 тыс.2 года назад
How to use a REST API from PHP using cURL | Full PHP cURL API tutorial
API access tokens: how do they work, and how do they compare to authentication using API keys?
Просмотров 42 тыс.2 года назад
API access tokens: how do they work, and how do they compare to authentication using API keys?
How to call APIs from PHP: file_get_contents, cURL, Guzzle and SDKs
Просмотров 39 тыс.2 года назад
How to call APIs from PHP: file_get_contents, cURL, Guzzle and SDKs
What is a REST API?
Просмотров 2,9 тыс.2 года назад
What is a REST API?
What is an API?
Просмотров 4 тыс.2 года назад
What is an API?
How to set up a virtual host in Apache (WAMP, MAMP, XAMPP)
Просмотров 6 тыс.3 года назад
How to set up a virtual host in Apache (WAMP, MAMP, XAMPP)
Validating and verifying email addresses in PHP
Просмотров 25 тыс.3 года назад
Validating and verifying email addresses in PHP
PHP Type Declarations: make your PHP code easier to read, and simpler to use
Просмотров 4,5 тыс.3 года назад
PHP Type Declarations: make your PHP code easier to read, and simpler to use
Passing data from PHP to JavaScript: methods, their pros and cons, and how to implement them
Просмотров 47 тыс.3 года назад
Passing data from PHP to JavaScript: methods, their pros and cons, and how to implement them
Rich-text formatting in PHP: HTML, Markdown, rich-text editors like TinyMCE and doing it securely
Просмотров 10 тыс.3 года назад
Rich-text formatting in PHP: HTML, Markdown, rich-text editors like TinyMCE and doing it securely

Комментарии

  • @brtbstn
    @brtbstn 14 часов назад

    Dave, I want to thank you for being very precise in your explanation. I love the way you narrate your content and provide as much value as you can in the most efficient way possible.

  • @Crank-nn2ub
    @Crank-nn2ub День назад

    Dave excuse my lack of intelligence but please can you kindly explain what your using exactly to write the code? Is that a program? Is that a OS?

    • @dave-hollingworth
      @dave-hollingworth День назад

      It's a code editor, Visual Studio Code. It's free, you can get it here: code.visualstudio.com/

    • @Crank-nn2ub
      @Crank-nn2ub 8 часов назад

      @@dave-hollingworth Dave, I have spent the last two days studying this video. I have followed every single step and done this multiple times. I’m still having a silly error encountered on my side. I’m surely making a small mistake but I can’t seem to figure out where. Please take my request seriously I am more than happy to pay you upfront for a quick 10 or 15 minutes chat. Maybe you can help me where I am going wrong….. I will pay you upfront, so you know I am not messing around please can you reply to this comment with a handle i can contact you on such as telegram or whatever you prefer. Sir, I know you get a lot of comments on your videos of people asking you for help but hopefully you’re happy to help me where I am willing to pay for your time. I will pay first so you know I’m serious. Any crypto you like :)

  • @aaa439
    @aaa439 День назад

    Hey i had a question if i were to put a pho file into a website will the website work because there is no server there

    • @dave-hollingworth
      @dave-hollingworth День назад

      You need a web server to have a website... you can serve any file you like, including .pho files - however if you want to execute some code like PHP, you need the web server to support PHP

    • @aaa439
      @aaa439 День назад

      Ohk thankyou​@@dave-hollingworth

  • @noone_fromwinterfell
    @noone_fromwinterfell 4 дня назад

    Hello dave, thank you for the great video however, It shows here that in my code Warning: Undefined array key "email" in C:\xampp\htdocs\dms\send-password-reset.php on line 3 pls help me

  • @seeker3794
    @seeker3794 4 дня назад

    How to make all files separate?

  • @seeker3794
    @seeker3794 4 дня назад

    Can't we have php html and javascript separately? For I have recognized the extension of .html is .php in your video.

    • @dave-hollingworth
      @dave-hollingworth 4 дня назад

      Yes, you can separate them into different files if you like, that's quite common

  • @fire23hummer
    @fire23hummer 4 дня назад

    Great content, thank you.

  • @Dylan_thebrand_slayer_Mulveiny
    @Dylan_thebrand_slayer_Mulveiny 5 дней назад

    PHP 8 was such a giant improvement. Another great addition was the match expression. Named arguments genuinely make code so much more readable. One of the rare cases where verbosity is the better choice.

  • @ixL8d
    @ixL8d 5 дней назад

    R+

  • @jock3rbr
    @jock3rbr 5 дней назад

    PHP is a multi purpose language. And here we see just one scenario. Good tips.

  • @codecr8ive
    @codecr8ive 5 дней назад

    You are the best! Thank You for yours tutorials.

  • @syahmihakimbinabdulhalim7565
    @syahmihakimbinabdulhalim7565 6 дней назад

    4:46 I don't know why my vendor files not appear, can you help me?

    • @dave-hollingworth
      @dave-hollingworth 5 дней назад

      What happens when you run it? Do you get any errors?

  • @Dylan_thebrand_slayer_Mulveiny
    @Dylan_thebrand_slayer_Mulveiny 6 дней назад

    "To concatenate a string we use a dot. " No. Don't. Please don't. Use sprintf. Use printf. Hell, use a fucking array and join. Just please don't use dots.

  • @hillachine3161
    @hillachine3161 6 дней назад

    literatly the best programming video ever

  • @m.moonsie
    @m.moonsie 6 дней назад

    Amazing!!

  • @dobrinivanov395
    @dobrinivanov395 7 дней назад

    This is great! Perfect amount of explanation. I still have to dig in as I dont have PHP experience and this was exactly what I needed. great job!

  • @torn1k3
    @torn1k3 8 дней назад

    Dave do you have course where you implement PHP MySQL + GraphQL for querying? or do you recomend one?

    • @dave-hollingworth
      @dave-hollingworth 7 дней назад

      I'm afraid not, but it's a good idea for a video, I'll make a note of it, thank you!

  • @philjones2839
    @philjones2839 9 дней назад

    Excellent - after 2 days of trying to figure out the Stripe documentation, I found this - which makes it all look so easy. Thanks

  • @arshadkhanSherani
    @arshadkhanSherani 10 дней назад

    Greate Tutorial. Can you explain how to implement 3D-Secure payment in Stripe?

  • @microsoftgaming1233
    @microsoftgaming1233 10 дней назад

    Thanks for creating such an informative tutorial on PHP :)

  • @user-ww7yz3mk4w
    @user-ww7yz3mk4w 10 дней назад

    thank you ! helpful

  • @CoderLoAnt
    @CoderLoAnt 10 дней назад

    sir, i got a problem. I do as the same like the video but after paying it can't jump to success.php and Not Found The requested URL was not found on this server.

  • @ChenillePottle
    @ChenillePottle 10 дней назад

    Cor, if only all dev tutorials were of this calibre, not a word wasted, bravo!

  • @andreubiosca190
    @andreubiosca190 12 дней назад

    Super useful videos. Thanks friend!

  • @tv44-alternative23
    @tv44-alternative23 12 дней назад

    I'm now getting this "Message could not be sent. Mailer error: SMTP Error: Could not authenticate.Message sent, please check your inbox." Is it a firewall issue with smtp server?

  • @kuan-weihuang5214
    @kuan-weihuang5214 12 дней назад

    thankyou for the guide. I use "python3 -m http.server" to run my local host. but i can't post wtih it. what's wrong with it? I don't understand the answer online.

  • @craigc5879
    @craigc5879 13 дней назад

    Another brilliant video

  • @totex1979
    @totex1979 13 дней назад

    You are the best PHP teacher on YT. Thank you!

  • @atharvagitaye
    @atharvagitaye 13 дней назад

    Hi, can you make video on how to implement rate limiting OTP/Verification Link request for verifying account in PHP?

  • @WoWUndad
    @WoWUndad 13 дней назад

    Just use react

  • @abdullahikabri5912
    @abdullahikabri5912 13 дней назад

    Nice work Dave! I love the way you delve deep into the sub-levels of PHP

  • @devdzpro3816
    @devdzpro3816 13 дней назад

    Thanks for this tutorial, when i add this command in cmd windows "http get restful-api-slim-php.local/api/products" i have erreur message "'http' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes." ? thanks.

  • @tiksong7613
    @tiksong7613 14 дней назад

    Thank you so much.

  • @comconet
    @comconet 14 дней назад

    Thank you. - Rolfe

  • @ahmad-murery
    @ahmad-murery 14 дней назад

    Short yet very informative, Thanks Dave!

  • @NedumEze
    @NedumEze 14 дней назад

    Thanks very much, Dave. Can you help me with a serious challenge that I am facing, please? My PHPMailer successfully sends mail as $mail->send() = true; But there's no mail in the target inbox! How would you overcome this?

    • @Dev-sf3pz
      @Dev-sf3pz 14 дней назад

      Do you have debug mode enabled? Does the debug readout say send success? It's easy to enable debug readout in PHPMailer so look that up and enable. Are you sending via SMTP? Getting PHPMailer working is 50% of it, having the SMTP mailbox for sending setup is the other 50%. Try sending to a temp-email box provider, and look in your spam folders. These days your mail can easily not be delivered if you haven't got the correct credentials setup like DKIM, DMARC and SPF, there's recently been a big clamp down on things like this with Gmail, Outlook etc. . Just recently our host enabled a new spam filter and that interfered with our sent mails, there's always little things like that which can trip you up. So if debug in PHPMailer is saying sent with no errors, then time to look for clues on your server or SMTP mailbox you are sending out on as to where these emails are ending up.

    • @NedumEze
      @NedumEze 14 дней назад

      @@Dev-sf3pz Thank you very much. Debug is enabled. And, it's Success. Gotta look elsewhere then. Thanks again, Dave.

    • @dave-hollingworth
      @dave-hollingworth 14 дней назад

      @@NedumEze Check the spam folder, or try sending from or to a different email address

    • @NedumEze
      @NedumEze 13 дней назад

      @@dave-hollingworth Yeah, Dave, I have. There isn't anything there. Thanks Dave.

    • @Dev-sf3pz
      @Dev-sf3pz 13 дней назад

      @@dave-hollingworth why was my reply seemingly deleted?

  • @mdazhardware
    @mdazhardware 14 дней назад

    Thanks for this great tutorial.

  • @igorolikov1997
    @igorolikov1997 14 дней назад

    best!

  • @eratechsglobal
    @eratechsglobal 14 дней назад

    I'm new on PHP, what special to learning fast?

    • @karameht
      @karameht 14 дней назад

      Welcome to PHP 🙂 To learn quickly, focus on understanding the fundamentals such as variables, loops, and functions. Practice regularly by working on small projects and referring to online resources like tutorials and documentation. Don't hesitate to ask questions in PHP communities if you encounter any roadblocks. Consistent practice and exploration will help you progress rapidly. True to the motto: Try, fail, debug, coffee, repeat.

    • @efbYouTube
      @efbYouTube 13 дней назад

      highly, HIGHLY recommend dave's udemy class "PHP for Beginners" thru Tim Buchalka's Learn Programming Academy which covers ALL the basics & was a GREAT prep for a college course i later took! it currently lists for $99 but if u have time to wait for a sale u MIGHT b able get it for <$20 (@ least i did +3 yrs ago!) failing that he has a lot of free content right here on his channel that im sure will get u up & running fast! freecodecamp is my other goto but their php content is a litlle dated :(

    • @eratechsglobal
      @eratechsglobal 8 дней назад

      Thank you. I have been trying to overcome that inconsistency, I believe take projects like you mentioned will help me a long may.

    • @efbYouTube
      @efbYouTube 7 дней назад

      highly recommend dave's ud3my class

  • @Steve-Richter
    @Steve-Richter 14 дней назад

    OT - any chance that XAMPP would replace MySQL with Postgres?

    • @dave-hollingworth
      @dave-hollingworth 14 дней назад

      Interesting idea - I can't find any mention of this, so I doubt it anytime soon - there does seem to be various tutorials around though that detail how to integrate PostgreSQL into XAMPP.

  • @dave-hollingworth
    @dave-hollingworth 14 дней назад

    Thank you for watching! Please consider supporting my channel: ☕ ko-fi.com/davehollingworth

  • @firasgasmy1229
    @firasgasmy1229 14 дней назад

    😂Dave your amaizing🤣

  • @dzvsow2643
    @dzvsow2643 15 дней назад

    I wish I could afford to buy your udemy course. you are amazing teacher

    • @hasanaldaas4109
      @hasanaldaas4109 8 дней назад

      Normally it you check it out a few times they give you a huge discount

  • @WATAMELON
    @WATAMELON 15 дней назад

    2:22 can you please provide the video link for this? also, you explained everything very well! im still not familiar with a lot of concepts mentioned but i still managed to understand this! thank you very much!

    • @dave-hollingworth
      @dave-hollingworth 14 дней назад

      ruclips.net/video/L5E2HSHrDjw/видео.html (it's also below in the description)

  • @eagle-yq7yw
    @eagle-yq7yw 16 дней назад

    Hi Dave! Your tutorial is great! But I have a question: if I'm doing a big project, is it an necessary to put the htdocs folder into the entire project? Or just leave signup.html and others php file following by the project's structure?

    • @dave-hollingworth
      @dave-hollingworth 15 дней назад

      The htdocs folder is just the root folder of the web server. So yes, you can put the files wherever you like.

    • @eagle-yq7yw
      @eagle-yq7yw 15 дней назад

      @@dave-hollingworth Thanks, and one more problem is that if i want to connect the file php with the html file, i can't do like you with action and method, because in my html file it contains Yup, can you recommend any solutions in this case?

    • @dave-hollingworth
      @dave-hollingworth 14 дней назад

      @@eagle-yq7yw I'm afraid I'm not sure what you mean - the action attribute is used to connect the form with the file that will be requested when the form is submitted.

  • @BiggieCheeto
    @BiggieCheeto 16 дней назад

    What the fuck

  • @dusabimanamartin5395
    @dusabimanamartin5395 16 дней назад

    Thank you sir now I can connect html form to database! The problem is that I can only see one record in the database after adding more

    • @dave-hollingworth
      @dave-hollingworth 16 дней назад

      This could be for many reasons - try comparing your code to the code from the video (link in the description)

  • @jayk4272
    @jayk4272 16 дней назад

    thanks a lot! this is exactly what I was looking for, you explained everything really well, now I can go ahead and make my project

  • @tv44-alternative23
    @tv44-alternative23 17 дней назад

    What program are you using to open and editing files also dos this program comes with a command-line terminal?

  • @tv44-alternative23
    @tv44-alternative23 18 дней назад

    Which version of MySQL you using, there were some changes made in the syntex

    • @dave-hollingworth
      @dave-hollingworth 17 дней назад

      You can see the various versions here: ruclips.net/video/5L9UhOnuos0/видео.htmlsi=3_9TY9rIlML2UiSP&t=600

    • @tv44-alternative23
      @tv44-alternative23 17 дней назад

      @@dave-hollingworth Issue resolved! I found out that I had to remove the following: "(hostname: $host, username: $username, password: $password, database: $dbname);" to "($host, $username, $password, $dbname);