Web design, development, and life.
Follow me @cmpdev. Learn about me, or contact me.

how to use composer

Composer uses a json file, composer.json to manage your dependencies.

To use it, you need to create that file.

You’ll need something like this to get started

    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "require": {
    "minimum-stability": "dev"

Thats is the composer file for Laravel simplified.

You then want to run composer install which will create a composer.lock file.

You should commit both to a source control system. The json file will allow you to specify what versions of things you want and the lock file will keep what versions your currently using so you don’t upgrade automatically to the latest version which might break your code.

To learn more check out getcomposer.org.

Learning all the things

Is it possible to be learning too many things?

I don’t think so, but I sure feel so.

Learning advanced Laravel design patterns, testing, API building, flat responsive designing (from scratch not with BootStrap or a Theme) is kind of dizzying.

Plus I want to know Node.JS and I can’t stop seeing iOS jobs everywhere all day long. I don’t even have an iPhone! (MBA and iPad mini though… so yea…)

There is only so much time in the day between class, work, 2 clubs, friends, and learning on the side before someone goes crazy or screws up all those things.

Damn, I wished I could just finish RealDay already.

Being a student means you’re wrong

I think many of us have felt this at one time or another. You work very hard on a problem and do everything you can to get it right. You turn it in and the teacher tears you a new one.

I recently got this feeling.

I have been realizing something recently which I didn’t want to admit.

I don’t know everything yet.

As students we’re not masters. That’s why we’re students.

If you don’t match the correct problem and give the right solution then you’re wrong. Make sure to comment your code. Pay attention in class.

Thats why you still can get a barely passing grade on the test and a very low grade on an assignment no matter how much experience and hacking you’ve done. It’s sloppiness, and lack of respect for the class and the professor, which causes that situation. He may be so piss poor you think he doesn’t deserve it, but it doesn’t matter.

He is the professor and you’re the student.

You’re wrong.