OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions Third Party Packages … Composer Require

This topic contains 11 replies, has 2 voices, and was last updated by  ballisticpain 8 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #28862

    ballisticpain
    Participant

    So I’m trying to add customizations to my CRM installation… Currently trying to notify when I get a lead created via an incoming call through Twilio. I want to send a text message when done. Fortunately I can do all the call handling via TwiML, but for sending messages it does seem that I need to use the Twilio API. There’s a Symfony Bundle that wraps the API into services… https://github.com/fridolin-koch/VreshTwilioBundle

    My problem is that when I do a

    it adds the proper information to the composer.json file, but it does not install anything.

    Looking deeper I notice that orocrm is running it’s own “packagist”, and this package is NOT one they are keeping in their repository of packages.

    How am I supposed to add third party bundles/libraries if they aren’t in the orocrm packagist repository?

    Thanks in advance!
    Jarvis

Viewing 11 replies - 1 through 11 (of 11 total)
  • Author
    Replies
  • #28863

    ballisticpain
    Participant

    I do see that I could manually specify the particular details and have it download the repository, but I feel this should not be the case. Am I mistaken or doing something wrong?

    Here’s where it explains how I could manually add the “package”: https://getcomposer.org/doc/05-repositories.md#packagist

    All the best,
    Jarvis

    #28864

    Yevhen Shyshkin
    Participant

    Hello, Jarvis.

    I’ve tried to use specified command and I’ve managed to install this package successfully:

    Now you just need to enable this bundle via bundles.yml file (e.g. in your custom bundle).

    orocrm is running it’s own “packagist”, and this package is NOT one they are keeping in their repository of packages.

    Correct, but this is just an additional repository used to search packages, so basic packagist is used to find all other packages too.

    If you can explain how to reproduce this issue – we will be happy to help you and find a solution.

    #28865

    ballisticpain
    Participant

    @Yehven,

    I will try again, and report back. After further reading I assumed it was supposed to also check packagist… It does turn out I do need it. I can’t use TwiML to send messages without first receiving one.

    Thanks!
    Jarvis

    #28866

    ballisticpain
    Participant

    Ah… (I stayed up all night so I failed to report the issue fully)

    (First off my composer is a bit out of date so going to update that…)

    Second I get…
    [RuntimeException]
    The lock file does not contain require-dev information, run install with the –no-dev option or run update to install those packages.

    It’s the Exception that’s stopping me… though running a composer install –no-dev afterwards doesn’t do anything even though I can verify the library is added to my composer.json.

    Thoughts?

    Thanks!
    Jarvis

    #28867

    ballisticpain
    Participant

    Wow … I just ran a install –no-dev AFTER doing the self update. It uninstalled the new stuff and re-installed older stuff. Guess I need to do an update locally and commit a new lock file.

    Thoughts?
    Jarvis

    #28868

    ballisticpain
    Participant

    All is well… thanks!

    How do I mark as resolved?

    All the best,
    Jarvis

    #28869

    ballisticpain
    Participant

    I have re-opened this issue as I’m having trouble working on my Slack integration.

    When I did this:
    composer require cleentfaar/slack ~0.14

    I get an error:

    I have proceeded to attempt to update the jms/serializer and jms/serializer-bundle dependencies but both of those fail with similar errors.

    Not sure how to proceed.

    Thanks,
    Jarvis

    #28870

    Yevhen Shyshkin
    Participant

    You have to choose one of these versions and handle version conflicts. How to do that – up to you to decide because cleentfaar/slack does not included into OroCRM package. I’d suggest to use higher version because usually highest version includes functionality from the older version.

    #28871

    ballisticpain
    Participant

    Yevhen,

    As I stated above I attempted to update those specific libraries, but I get more errors about versions…

    Here’s what I ran:
    composer require jms/serializer

    Here’s what I get back from that:

    Here’s another attempt:
    composer require jms/serializer jms/serializer-bundle

    Here’s what I get back from that:

    Thoughts?

    Thanks,
    Jarvis

    #28872

    Yevhen Shyshkin
    Participant

    Unfortunately, you can’t handle this conflict just by adding new modules with required versions – you should remember about platform dependencies that have strict versions too (that’s why you have this issue).

    So, possible solution is either using of older version of cleentfaar/slack (e.g. 0.9.4), or fixing of dependency versions of OroPlatform. I’d like to warn you that if you’ll choose fixing of platform dependencies then application might become unstable because it wasn’t tested with higher versions of JMS serializer. We already have improvement to use higher version of JMS serializer, but I can’t tell you when it will be done.

    #28873

    ballisticpain
    Participant

    So I resolved by using alias’. I knew it was a locked in platform dependency… Here’s what I manually put into my composer.json (as I don’t know the command line equivalent).

    I’ll let you know if I experience any difficulties.

    Thanks for your continued assistance!

    All the best,
    Jarvis

Viewing 11 replies - 1 through 11 (of 11 total)

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top