Tutorialspoint

April Learning Carnival is here, Use code FEST10 for an extra 10% off

Package Development for Laravel & PHP

person icon Jorge García Coello

4.2

Package Development for Laravel & PHP

Learn to create packages for Laravel and avoid repeating yourself

updated on icon Updated on Apr, 2024

language icon Language - English

person icon Jorge García Coello

category icon Laravel,PHP,PHP Programming,PHP & MySQL

Lectures -21

Duration -2 hours

4.2

price-loader

30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.

Course Description

Stop repeating code

Has it happened to you that, when you are coding, you say to yourself: 

I already wrote this feature!

But, what you do not remember is when you did it, or where you have it, and starting to search at that precise moment means leaving the flow in which you are working on to burn time in winding searches, hoping not to repeat what has already been done.

Consuming your time and energy on useless things; not only delays your work, it’s also frustrating, cuts off your inspiration and represents less professional quality; therefore, slower and lower income.

The master key

What if you could immediately use all the code you've already written, by installing a single command?

The key is to extract your code to a package; this way you will have immediate access whenever you need to use the resources you have already created.

Surely you have already heard this!

But if you haven't implemented it in your development practices yet, it could be for several reasons:

  1. You have searched for FREE video tutorials that show you a part of the puzzle, but there are always missing pieces to achieve it and after many tries, you finally get tired of searching.

  2. You have bought courses, and watch long, unedited videos at 2× speed learning any or very little, which discourages you from investing again.

  3. You have found a lot of information about it, but you don't know what is really going to help you and you feel confused.

In the end, all this has made you take a step back and continue with the same rudimentary practice of copy - paste or rewrite your code every time you need it, even if it is a real headache.

How to do it right?

Have you ever wondered what is the simple, effective and fast way to make a package?

First of all, you must be clear that you can find EVERYTHING on the web, but although there is a lot of “FREE” content, everything has a price and the most expensive is: your precious time.

Giving value to your time and your intelligence while you learn is the main source of income in your near future.

If you get rid of the stress of looking for something good and "FREE", having to read many reviews of what you randomly find to learn "FREE", if you have questions and do not find the answers in what you are learning "FREE ”; if you get rid of all this and decide to invest a few dollars and decide not to continue spending your precious time of life that is not "FREE", I assure you that in a few hours you can learn to pack efficiently and you will start flowing in your projects more happily.

If you are tired of searching and not finding, if you want to access professionally, and high quality content, by and for a professional web developer; this course is your answer.

With this Course you will achieve in just 2 hours:

  • Optimize your time and your productive energy.

  • Flow in the development of your applications without having to stop to solve things that you have already done.

  • implement a good practice, as all professional web developers do.

Course Features:

  • This course has a duration of 2h 04m.

  • It is distributed in 21 very short and clearly explained lessons, which will take you step by step on how to build packages for Laravel.

  • You will have access to compact and well-explained content, to achieve your goal in the shortest possible time.

  • You will access carefully produced material with excellent audio and video quality in each of the lessons.

Other benefits:

  • With this Course, you can learn anytime, anywhere and at your own pace.

  • Using packages prevents you from repeating codes that you have already created.

  • Using packages will optimize your resources and work faster.

  • You will not burn your time and energy looking for resources that you have already worked on.

  • You will not cut your inspiration in the creation of new projects.

  • Using your packages you can focus your skills on building new ideas.

Course Outline

  1. Introduction & What is a Package

    In this lesson we quickly review what packages are and what we need to start creating them.

  2. Creating your first package

    In this lesson we create a package from scratch and learn how to use it in a Laravel application locally.

  3. How to autoload classes in your packages

    In this lesson we learn how to automatically load our package classes using PSR-4

  4. Facades, Service Container & Service Providers explained

    In this lesson we learn what the Laravel Service Container is, what Service Providers are and how to create them, and what Facades are and how to create them.

  5. How to add Package Auto-Discovery in Laravel

    In this lesson we add a ServiceProvider and a Facade that are automatically registered to make it easier to use our package in Laravel.

  6. How to test your packages

    In this lesson we configure PHPUnit and add tests to our package in the same way that we would if we were inside a Laravel application.

  7. How to add routes to packets

    In this lesson we learn how to define routes and load route files that can be used by applications that install our package.

  8. How to add controllers to your package

    In this lesson we learn how to use controllers in our packages, and how to use them without using namespaces.

  9. How to add views to your packages

    In this lesson we learn how to load our package views with namespaces, and how to use them.

  10. Allow the users to overwrite the package views

    In this lesson we give the end user the option to publish the views of our package so that they can modify them according to their requirements.

  11. How to allow configuration in your packages

    In this lesson we learn how to add configuration files to our Laravel packages and how to allow the end user to modify these configurations.

  12. How to add Models and Migrations to your packages

    In this lesson we learn to provide migrations and templates to the end user of our packages

  13. How to allow to modify Migrations in your packages

    In this lesson we allow the end user of our package to be able to publish the migrations in order to modify it according to their needs.

  14. How to add translations to your packages

    In this lesson we learn how to auto-load and publish PHP and JSON translations to our Laravel packages.

  15. How to add assets to your packages

    In this lesson we learn how to publish static CSS and JS files so that they can be used immediately after publishing.

  16. How to add Code Coverage to you packages

    In this lesson we learn what it is and how to use Code Coverage in our packages and in any PHP application.

  17. Creating a Real Package

    In this lesson we create an actual package that allows executing the storage:link command on servers shared with cpanel without console access.

  18. How to use Git & Github to publish on Packagist

    In this lesson we initialize our package's local repository with GIT, publish it to GITHUB, and finally add it to Packagist so it can be installed into any Laravel application using Composer.

  19. How to add Semantic versioning to your packages

    In this lesson we learn about the semantic versioning specification and how to implement it in our packages.

  20. What is the README file for

    In this lesson we learn what a README file is and what it is for as we create one for our package.

  21. How to choose a License

    In this lesson we learn how to choose and add a license to our packages according to the needs of the project.

Who this course is for:

  • PHP Developers
  • Laravel Developers
  • Web Developers

Goals

What will you learn in this course:

  • Create your own packages for Laravel

  • Reuse code in different projects

  • Add ode coverage to your packages with php unit

  • Make your own packages available in Packagist

Prerequisites

What are the prerequisites for this course?

  • PHP programming experience is needed

Package Development for Laravel & PHP

Curriculum

Check out the detailed breakdown of what’s inside the course

Intro
1 Lectures
  • play icon What is a package 02:14 02:14
Hands-on
20 Lectures
Tutorialspoint

Instructor Details

Jorge García Coello

Jorge García Coello

e


Course Certificate

Use your certificate to make a career change or to advance in your current career.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
Annual Membership

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
Online Certifications

Talk to us

1800-202-0515