<commit_before>.. index::
   single: Installation
   
Installation
============

Phinx should be installed using Composer. Composer is a tool for dependency
management in PHP. Please visit the `Composer <http://getcomposer.org/>`_ 
website for more information.

.. note::

    Phinx requires at least PHP 5.3.2 (or later).

To install Phinx simply add it as a dependency to your project's 
``composer.json`` file:

.. code-block:: javascript

    {
        "require": {
            "robmorgan/phinx": "*"
        }
    }

Then run Composer:

.. code-block:: bash

    php composer.phar install --no-dev

Phinx can now be executed from within your project:

.. code-block:: bash

    php vendor/bin/phinx<commit_msg>Update install.rst<commit_after>.. index::
   single: Installation
   
Installation
============

Phinx should be installed using Composer. Composer is a tool for dependency
management in PHP. Please visit the `Composer <http://getcomposer.org/>`_ 
website for more information.

.. note::

    Phinx requires at least PHP 5.3.2 (or later).

To install Phinx simply add it as a dependency to your project's 
``composer.json`` file:

.. code-block:: javascript

    {
        "require": {
            "robmorgan/phinx": "*"
        }
    }

Then run Composer:

.. code-block:: bash

    php composer.phar install --no-dev

Create a folder in your project directory called "migrations" with adequate permissions,
it is where your migration files will be located and should be writable.

Phinx can now be executed from within your project:

.. code-block:: bash

    php vendor/bin/phinx init
{'fraction_non_alphanumeric': 0.10903426791277258, 'fraction_numerical': 0.003738317757009346, 'mean_word_length': 2.965432098765432, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2307464', 'n_tokens_mistral': 488, 'n_tokens_neox': 461, 'n_words': 182}