Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Discussion on install Plugins in Cake PHP

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 528
    Comment on it

    Hi Reader's,
    Welcome to FindNerd, today we are going to discuss install Plugins in Cake PHP.

    When adding a Plugins in CakePHP web application we should follow any of the below four ways

    1- Manually plugin install
    2- Plugin installed As Git Submodule
    3- Plugin install through Composer
    4- By Git Cloning

    let explain one  by one
    1- Manually plugin install:- If you want to install a plugin manually in your web application then firstly you have to make a plugin folder into the directory "app/Plugin/" folder.

    Suppose we are installing a plugin named as "ABC" then we have to make a folder in app/Plugin/ named "abc" under which there should be the plugin’s View, Model, Controller and webroot and any other directories the plugins have.

    2- Plugin installed As Git Submodule :-  If you want to install a plugin that is hosted as a Git then you have to execute following commands in your app folder:

    git submodule add git://github.com/cakephp/contact-manager.git Plugin/ContactManager
    git submodule init
    git submodule update

    3- Plugin install through Composer :- if you want to install the imaginary plugin "ABC" through Composer then you have to add it as a dependency to your project’s composer. json:

    see below code:

    <?php 
        {
        "require": {
        "cakephp/contact-manager": "1.2.*"
        }
        }
    
    ?>
    

    Composer always installs the plugin inside /Plugin directory.

     

    4- By Git Cloning :- First you have to install Plugins hosted as a GitHub, then you can also clone it in your CakePHP web application, to do this follow below command

     Suppose there is a plugin "ABC " which is hosted on GitHub
     
      app/Plugin/ folder

    
    git clone git://github.com/cakephp/contact-manager.git XYZ

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: