LaysenseAuth/vendor/robmorgan/phinx/docs/en/install.rst

29 lines
693 B
ReStructuredText
Raw Permalink Normal View History

2024-08-09 19:46:39 +05:30
.. index::
single: Installation
Installation
============
Phinx should be installed using Composer, which is a tool for dependency
management in PHP. Please visit the `Composer <https://getcomposer.org/>`_
website for more information.
.. note::
Phinx requires at least PHP 7.2 (or later).
To install Phinx, simply require it using Composer:
.. code-block:: bash
php composer.phar require robmorgan/phinx
Create folders in your project following the structure ``db/migrations`` with adequate permissions.
It is where your migration files will live and should be writable.
Phinx can now be executed from within your project:
.. code-block:: bash
vendor/bin/phinx init