Thursday, 15 April 2010

php - Load Google ReCaptcha Without Composer -


PHP libraries usually provide installation instructions on how to incorporate their resources without relying on the music director. However, there are installation instructions for using only the musician, and I find it hard to find out how I can incorporate a library using another conventional method.

Can anyone please tell me how can I know about it? Thanks!

Why do not you want to use the musician, except this issue, I see two options For:

First clone the repository in your project and delete the version control information. (Alternatively you can use a git submodule or subtree).

  cd myProject git clone https://github.com/google/recaptcha.git CD Recap! RM -RF.git  
  1. Required each file individually

      $ recaptchaBase = '/ path / to / myProject / recaptcha / src'; Need_once $ recaptchaBase '/ReCaptcha.php'; Need_once $ recaptchaBase '/RequestMethod.php'; Need_once $ recaptchaBase '/RequestParameters.php'; Need_once $ recaptchaBase '/Response.php'; Need_once $ recaptchaBase '/RequestMethod/Post.php'; Need_once $ recaptchaBase '/RequestMethod/Socket.php'; Need_once $ recaptchaBase '/RequestMethod/SocketPost.php';    

    Then include it with your script:

      

    Need_once '/path/to/myProject/recaptcha/vendor/autoload.php'; In Law 2 you need a composer to create your own loader initially, but you do not need to rely on it for your entire app.

  2. >

No comments:

Post a Comment