Home / 2014 / June

Monthly Archives: June 2014

Laravel 4 install & configuration

At first need composer setup, open your terminal , I’m using git bash use command below by terminal

curl -sS https://getcomposer.org/installer | php

you can showing downloading running… when download complete then use command

php composer.phar

see below many commands

Rasel Khan:~$ composer
   ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ / __ `__ / __ / __ / ___/ _ / ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
____/____/_/ /_/ /_/ .___/____/____/___/_/
                    /_/
Composer version 1.0-dev (8e9659bd8317ad3f623c4d17940380443cf8772c) 2015-06-14 09:10:46

Usage:
 command [options] [arguments]

Options:
 --help (-h)           Display this help message
 --quiet (-q)          Do not output any message
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 --version (-V)        Display this application version
 --ansi                Force ANSI output
 --no-ansi             Disable ANSI output
 --no-interaction (-n) Do not ask any interactive question
 --profile             Display timing and memory usage information
 --working-dir (-d)    If specified, use the given directory as working directory.

Available commands:
 about            Short information about Composer
 archive          Create an archive of this composer package
 browse           Opens the package's repository URL or homepage in your browser.
 clear-cache      Clears composer's internal package cache.
 clearcache       Clears composer's internal package cache.
 config           Set config options
 create-project   Create new project from a package into given directory.
 depends          Shows which packages depend on the given package
 diagnose         Diagnoses the system to identify common errors.
 dump-autoload    Dumps the autoloader
 dumpautoload     Dumps the autoloader
 global           Allows running commands in the global composer dir ($COMPOSER_HOME).
 help             Displays help for a command
 home             Opens the package's repository URL or homepage in your browser.
 info             Show information about packages
 init             Creates a basic composer.json file in current directory.
 install          Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
 licenses         Show information about licenses of dependencies
 list             Lists commands
 remove           Removes a package from the require or require-dev
 require          Adds required packages to your composer.json and installs them
 run-script       Run the scripts defined in composer.json.
 search           Search for packages
 self-update      Updates composer.phar to the latest version.
 selfupdate       Updates composer.phar to the latest version.
 show             Show information about packages
 status           Show a list of locally modified packages
 update           Updates your dependencies to the latest version according to composer.json, and updates the composer.lock file.
 validate         Validates a composer.json

If you want globally install it then use command mv composer.phar /usr/bin/composer Now, you have composer install globally !!

At this time needs laravel install & downloading, change your directory where you want install it, My directory changes for Desktop ! type command

Rasel Khan:~: cd ~/Desktop 

and with create a new directory called (laravel_lesson) mkdir laravel_lessson then change this directory user command

Rasel Khan:~$ cd laravel_lesson 

Now install laravel by composer use command

composer create-project laravel/laravel your-project-directtory-name 

This (your-project-directtory-name) means laravel_lesson directory, Because before I create directory Desktoplaravel_lesson, So finally command use

composer create-project laravel/laravel laravel_lesson

You can show all laravel files downloading running…. When download complete then you need third party dependency
Now, use command

composer update 

You have all files downloaded into laravel_lesson directory

Now you need server running use command

Rasel Khan:~$ php artisan serve
Laravel development server started on http://localhost:8000/

Finally you showing by browser complete install laravel 4 !!

গিট কনফিগারেশন সাবলাইম টেক্সট ২

আমরা অনেকেই গিট নিয়ে কাজ করি , কিন্তু অনেকেই জানি না গিট এর মাধ্যমে কিভাবে সাবলাইম টেক্সট এডিটর ওপেন করা যায় , আজকে আমরা  দেখব !

প্রথমেই গিট ডাউনলোড করে নিতে হবে এখান  থেকে , আমি ইন্সটল করেছি  এই

 C:Program Files (x86)Git 

লোকেশান- এ, তারপর ওপেন করুন যে কোন এডিটর আমি ওপেন করছি  Sublime Text 2 নতুন একটা ফাইল ওপেন করুন টাইপ করেন

#!/bin/sh
C:Program Files (x86)Sublime Text 2sublime_text.exe" $1

ফাইলটা সেভ করেন

subl

নামে কোন এক্সটেন্সান ছাড়া, তারপর এই subl ফাইলটা কপি করে পেস্ট করেন bin ফোল্ডারে, bin ফোল্ডার পাবেন  

C:Program Files (x86)Gitbin 

এখন ওপেন করেন  Git Bash or Terminal টাইপ করেন

pwd 

 আপনার লোকেশান দেখাবে।

তারপর টাইপ করেন

subl .

আপনার সাবলাইম টেক্সট এডিটর ওপেন হবে ……!!!