Installing Propel in our project via Composer / ~#root -i Installing Propel in our project via Composer / ~#root -i Installing Propel in our project via Composer / ~#root -i Installing Propel in our project via Composer / ~#root -i Installing Propel in our project via Composer / ~#root -i Installing Propel in our project via Composer / ~#root -i Installing Propel in our project via Composer / ~#root -i Installing Propel in our project via Composer / ~#root -i
  • RU
  • UA
  • EN
  • Create an online store
  • Documentation
  • Blog
    • Unix ОS
    • Php
    • MySQL
    • JavaScript
    • Package Managers
    • Docker
    • Seo
  • Short Links
  • Sign in
  • Create Account
  • Home
  • Package Managers
  • Installing Propel in our project via Composer

Installing Propel in our project via Composer

Propel makes it easy to access the database, so it allows you to quickly expand the project and convenient to use. A short description on using composer is here .

Take the package from packegist .

1. At the root of the project, create composer.json :

{
"require": {
"propel/propel": "dev-master"
}
}

2. At the root of the project, where composer.json - install :

sudo composer install

In my case /var/www/test1.loc

3. These packages will be pulled up :

Packages install

Don't pay attention to "PHP Warning", it's echoes of my previous project)

4. Connection on site :

Don't forget to include autoload.php. For example, I placed in index.php

<?php
include_once './vendor/autoload.php';

03 June 18
519
0

Comments

Name
E-mail
Rating
Review

Other articles from the category

01 June 2018

Connecting Composer libraries to Php site

Having figured out what Compser is and what it is for, you should figure out how to use it on the site. In the article, we will consider connecting libraries pulled up through Composer.

31 May 2018

Getting started with Composer on Ubuntu 14.04

Composer brought the convenience of using ready-made solutions, packages and libraries. Proper organization of work with Composer can make it easy to maintain always up-to-date versions of the libraries used in the project. Consider getting started with Composer.

Categories

  • Unix OS
  • Php
  • MySQL
  • JavaScript
  • Package Managers
  • Docker
  • Seo

Latest comments

alex, я вижу 2 причины почему так может быть. Не в...
root-i
04.07.22
Сделал все так как написано в статье, не работает.
alex
04.07.22
Как вариант это может происходить из-за неизвестно...
root-i
21.01.22
Чтобы убрать ошибку Uncaught TypeError: $ is not a...
wlad2.ru
11.01.22

I share information in which I needed help and spent a lot of time figuring it out. If the information helped at least one person, then this site was not created in vain.

Thank you for the continuation of the site:
Contacts

Telegram Viber Mail

Search for articles

  • Sign in
  • Create Account

Powered by chmod -R