Showing posts with label Laravel. Show all posts
Showing posts with label Laravel. Show all posts

Instal Compozer Laravel 4

12:51 PM | , , , , , , ,


Apa itu Laravel?
Bagi yang belum tahu Laravel itu adalah salah satu framework aplikasi web berbasis PHP. Untuk mengetahui lebih lanjut tentang Laravel dapat dibaca di sini.

Nah sebelum menggunakan framework Laravel rekan-rekan bisa mendownload master Laravel di repository master laravel di github.

Setelah itu akan kami bahas bagaimana cara menginstal Compozer. Apa itu kompozer bisa di baca di sini. Namun sekedar informasi bahwa untuk menginstal laravel dengan mudah maka kita harus terlebih dahulu menginstal compozer.

Untuk menginstal compozer langkah yang harus dilakukan sebagai berikut.
Download compozer dengan menggunakan curl dengan perintah berikut ini
curl -sS https://getcomposer.org/installer | php
sebelumnya bisa diinstal dulu curl jika anda pengguna linux ubuntu maka anda cukup mengteikan perintah berikut atau mendownload source-nya di sini
apt-get install php5-curl
jika anda pengguna windows maka anda bisa melihat tutorialnya di sini
atau jika belum menginstal curl maka bisa menggunakan perintah berikut
php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
setelah itu instal compozer dengan perintah berikut
curl -sS https://getcomposer.org/installer | php -- --install-dir=[instal_dir]
silahkan ganti instal dir dengan direktori /usr/local/bin
atau jika gagal gunakan perintah memindah file compozer secara manual ke local bin tetapi untuk perintah di atas untuk  -- --install-dir dihapus.
mv composer.phar /usr/local/bin/composer
Oke sampai sini tahap menginstal compozer selesai ^_^







Read More

Install Laravel in ubuntu varian

8:59 PM | , , , , , , , ,

Requirements

  • Apache, nginx, or another compatible web server.
  • Laravel takes advantage of the powerful features that have become available in PHP 5.3. Consequently, PHP 5.3 is a requirement.
  • Laravel uses the FileInfo library to detect files' mime-types. This is included by default with PHP 5.3. However, Windows users may need to add a line to their php.ini file before the Fileinfo module is enabled. For more information check out the installation / configuration details on PHP.net.
  • Laravel uses the Mcrypt library for encryption and hash generation. Mcrypt typically comes pre-installed. If you can't find Mcrypt in the output of phpinfo() then check the vendor site of your LAMP installation or check out the installation / configuration details on PHP.net.

Installation


  1. Download Laravel
  2. Extract the Laravel archive and upload the contents to your web server.
  3. Set the value of the key option in the config/application.php file to a random, 32 character string.
  4. Verify that the storage/views directory is writable.
    You can use chmod option like this
    #chmod a+w your_path/storage/views  -R
  5. Navigate to your application in a web browser. http://localhost/laravel/public
Read More