Square Connect API - running composer in the directory












0














Okay I am going off the GIthub documentation for the Square Connect API which is below:



Square Connect API



And I'm confused with where it mentions you need to run composer.



I run the command in command prompt but get an error message:




$ php composer.phar require square/connect
'$' is not recognized as an internal or external command,
operable program or batch file.




I must admit I am very new to using composer and I'm not even entirely sure of what it's used for, so if you have an answer if you could explain or link to that I would appreciate it.



Furthermore, is composer only able to run on a localhost? Because below this explanation it says "from Github" and instructs to download and open in project folder. I am assuming then that if it's not on a development site or localhost, you do not use Composer.



I have been looking around for a clear explanation to this but all anyone really does is link back to the Composer website which to me is a little unclear.



Any explanations?










share|improve this question


















  • 3




    Leave the $ off. That indicates a command line prompt. Just run php composer.phar install.
    – ceejayoz
    Jan 9 at 3:21


















0














Okay I am going off the GIthub documentation for the Square Connect API which is below:



Square Connect API



And I'm confused with where it mentions you need to run composer.



I run the command in command prompt but get an error message:




$ php composer.phar require square/connect
'$' is not recognized as an internal or external command,
operable program or batch file.




I must admit I am very new to using composer and I'm not even entirely sure of what it's used for, so if you have an answer if you could explain or link to that I would appreciate it.



Furthermore, is composer only able to run on a localhost? Because below this explanation it says "from Github" and instructs to download and open in project folder. I am assuming then that if it's not on a development site or localhost, you do not use Composer.



I have been looking around for a clear explanation to this but all anyone really does is link back to the Composer website which to me is a little unclear.



Any explanations?










share|improve this question


















  • 3




    Leave the $ off. That indicates a command line prompt. Just run php composer.phar install.
    – ceejayoz
    Jan 9 at 3:21
















0












0








0







Okay I am going off the GIthub documentation for the Square Connect API which is below:



Square Connect API



And I'm confused with where it mentions you need to run composer.



I run the command in command prompt but get an error message:




$ php composer.phar require square/connect
'$' is not recognized as an internal or external command,
operable program or batch file.




I must admit I am very new to using composer and I'm not even entirely sure of what it's used for, so if you have an answer if you could explain or link to that I would appreciate it.



Furthermore, is composer only able to run on a localhost? Because below this explanation it says "from Github" and instructs to download and open in project folder. I am assuming then that if it's not on a development site or localhost, you do not use Composer.



I have been looking around for a clear explanation to this but all anyone really does is link back to the Composer website which to me is a little unclear.



Any explanations?










share|improve this question













Okay I am going off the GIthub documentation for the Square Connect API which is below:



Square Connect API



And I'm confused with where it mentions you need to run composer.



I run the command in command prompt but get an error message:




$ php composer.phar require square/connect
'$' is not recognized as an internal or external command,
operable program or batch file.




I must admit I am very new to using composer and I'm not even entirely sure of what it's used for, so if you have an answer if you could explain or link to that I would appreciate it.



Furthermore, is composer only able to run on a localhost? Because below this explanation it says "from Github" and instructs to download and open in project folder. I am assuming then that if it's not on a development site or localhost, you do not use Composer.



I have been looking around for a clear explanation to this but all anyone really does is link back to the Composer website which to me is a little unclear.



Any explanations?







php composer-php






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 9 at 3:19









logos_164

185115




185115








  • 3




    Leave the $ off. That indicates a command line prompt. Just run php composer.phar install.
    – ceejayoz
    Jan 9 at 3:21
















  • 3




    Leave the $ off. That indicates a command line prompt. Just run php composer.phar install.
    – ceejayoz
    Jan 9 at 3:21










3




3




Leave the $ off. That indicates a command line prompt. Just run php composer.phar install.
– ceejayoz
Jan 9 at 3:21






Leave the $ off. That indicates a command line prompt. Just run php composer.phar install.
– ceejayoz
Jan 9 at 3:21














1 Answer
1






active

oldest

votes


















0














I ran into similar problems. when you install it requires you to pick a command line. By default for me, it was php.exe (wherever you have that saved).



I found it and added it as a path to my windows command prompt (pretty easy to find the youtube video on this), and then you must first start by simply typing the word 'composer' into the command prompt to run in; then continue as directed on the square site.



If you get another error that says it can't open file: composer.phar, then rewrite the line without '.phar'.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48160991%2fsquare-connect-api-running-composer-in-the-directory%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I ran into similar problems. when you install it requires you to pick a command line. By default for me, it was php.exe (wherever you have that saved).



    I found it and added it as a path to my windows command prompt (pretty easy to find the youtube video on this), and then you must first start by simply typing the word 'composer' into the command prompt to run in; then continue as directed on the square site.



    If you get another error that says it can't open file: composer.phar, then rewrite the line without '.phar'.






    share|improve this answer




























      0














      I ran into similar problems. when you install it requires you to pick a command line. By default for me, it was php.exe (wherever you have that saved).



      I found it and added it as a path to my windows command prompt (pretty easy to find the youtube video on this), and then you must first start by simply typing the word 'composer' into the command prompt to run in; then continue as directed on the square site.



      If you get another error that says it can't open file: composer.phar, then rewrite the line without '.phar'.






      share|improve this answer


























        0












        0








        0






        I ran into similar problems. when you install it requires you to pick a command line. By default for me, it was php.exe (wherever you have that saved).



        I found it and added it as a path to my windows command prompt (pretty easy to find the youtube video on this), and then you must first start by simply typing the word 'composer' into the command prompt to run in; then continue as directed on the square site.



        If you get another error that says it can't open file: composer.phar, then rewrite the line without '.phar'.






        share|improve this answer














        I ran into similar problems. when you install it requires you to pick a command line. By default for me, it was php.exe (wherever you have that saved).



        I found it and added it as a path to my windows command prompt (pretty easy to find the youtube video on this), and then you must first start by simply typing the word 'composer' into the command prompt to run in; then continue as directed on the square site.



        If you get another error that says it can't open file: composer.phar, then rewrite the line without '.phar'.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 20 at 5:58









        Kemal Dağ

        2,4281526




        2,4281526










        answered Nov 20 at 0:47









        Acro

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48160991%2fsquare-connect-api-running-composer-in-the-directory%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            RAC Tourist Trophy