Coder Social home page Coder Social logo

Comments (4)

dferrans avatar dferrans commented on September 13, 2024

I have used composer for a long time, and it seems to handle package dependency very easy.
most PACKAGES are PSR compliant http://www.php-fig.org/ (https://packagist.org/ php packages).
Also, it handle cutting edge PHP features (to handle dependencies, closures, namespacing ). avoiding class conflicts.

to INSTALL packages, you DO NOT need NODEJS (Bower does).

Benefits:
using composer help us to make sure that dependencies of the proyect are meet very easy.
Upgrades made easy with composer commands
Ability to vesion composer with different dependencies across branches.

Downsize:
you need to know how composer works.
Sometimes you need to be able to run CLI commands

Conclusion:

I would prefer COMPOSER instead of BOWER.

from crm.

DawoudIO avatar DawoudIO commented on September 13, 2024

I would agree with you that composer is a better for php projects... Let me create a list of libs that we use and go from there

from crm.

dferrans avatar dferrans commented on September 13, 2024

Eloquent (LARAVEL ORM).
For ORM I would recomend the following package
Is realy easy to use: (see docs)
http://laravel.com/docs/5.0/eloquent
composer file:

{
    "require": {
        "illuminate/database": "*"
    }
}

GUZZLE HTTP:
PHP HTTP client and framework for consuming RESTful web services
urL: http://guzzle.readthedocs.org/en/latest/

Composer file:

{
   "require": {
      "guzzlehttp/guzzle": "~5.0"
   }
}

SLIM PHP framework
Url: http://www.slimframework.com/
LIGHT WEIGHT MICRO PHP FRAMEWORK can help us to migrate to MVC .
Composer file:

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

Phinx
This is a DATABASE migration tool writen in php
Is framework agnostic.
Is is realy easy to manage migrations:
URL: http://docs.phinx.org/en/latest/

Composer File:

{
    "require": {
       "robmorgan/phinx": "dev-master"
    }
}

Faker
Faker is a PHP library that generates fake data for you.

https://packagist.org/packages/fzaninotto/faker

{
    "require": {
      "fzaninotto/faker": "1.5.*@dev"
    }
}

from crm.

DawoudIO avatar DawoudIO commented on September 13, 2024

While we are not yet using composer, we are moving all the external lib into a vendor dir.

from crm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.