NPM & left-pad: Have We Forgotten How To Program?
I'm a couple complete noob I understand branch but no idea how to do it.
All I want is to use laravel on my windows pc inside my wamp installation
Basically you need to understand the packages that you want to include in your project, explore them e.g. on github.
Specifically read the projects commitments, understand how they manage API changes, etc. If they do proper version / branch management, you would be able to link to a particular release of it and be able to feel more assured the API will be secure.
Remember when in doubt contact the project owner and ask them how they manage versions and how they will ensure API consistency.
When in doubt fork the project to your github account; that way you can control what changes are applied to your fork i.e. to secure your project against unintended changes. The other reason you might want to fork a project is because you want to make some changes that are unique to your project, but generally this is better achieved through a wrapper class, or the like.
Alternatively if you only need a portion of framework or need to include a function or two, I'd suggest you create your own standard library in which you copy/paste all the functions you use regularly in your projects e.g. left string pad
Also if the dependency you want is a simple function like leftpad, I'd suggest you just copy/paste this into your standard library, because its very unlikely simple function projects are well maintained; case in point is this thread.
Let me know if you need a practical example.