Skip to content

Commit

Permalink
docs installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheron committed Apr 15, 2017
1 parent 3b14691 commit b26f042
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
4 changes: 0 additions & 4 deletions docs/download.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ micro-framework User guide

Installation
------------
* :doc:`download`
* :doc:`install`
* :doc:`createproject`


Expand Down
18 changes: 18 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
micro-framework installation
============================

Install Composer
----------------
**micro** utilizes Composer to manage its dependencies. So, before using, you will need to make sure you have `Composer <http://getcomposer.org/>`_ installed on your machine.

Install micro-devtools
----------------------
Download the Micro-devtools installer using Composer.::
composer global require "phpmv/micro-devtools=dev-master"

Make sure to place the `~/.composer/vendor/bin` directory in your PATH so the **Micro** executable can be located by your system.

Once installed, the simple micro new command will create a fresh micro installation in the directory you specify.
For instance, Micro new blog would create a directory named blog containing a fresh Micro installation with all dependencies installed. This method of installation is much faster than installing via Composer: ::
Micro new blog

10 changes: 5 additions & 5 deletions tools/Micro.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ class Micro {

public static function downloadZip($url,$zipFile="tmp/tmp.zip"){
$f = file_put_contents($zipFile, fopen($url, 'r'), LOCK_EX);
if(FALSE === $f)
die("Couldn't write to file.");
else{
echo $f." downloaded.\n";
}
if(FALSE === $f)
die("Couldn't write to file.");
else{
echo $f." downloaded.\n";
}
}

public static function createComposerFile(){
Expand Down

0 comments on commit b26f042

Please sign in to comment.