HybridAuth 설치

HybridAuth 설치

1 git 클론[ | ]

[root@zetawiki ~]# cd /usr/share/php/vendor/
[root@zetawiki vendor]# git clone https://github.com/hybridauth/hybridauth.git
Initialized empty Git repository in /usr/share/php/vendor/hybridauth/.git/
remote: Counting objects: 6371, done.
remote: Total 6371 (delta 0), reused 0 (delta 0), pack-reused 6371
Receiving objects: 100% (6371/6371), 5.45 MiB | 1.46 MiB/s, done.
Resolving deltas: 100% (3273/3273), done.

2 test.php 작성[ | ]

  • DOCUMENT_ROOT 아래에 ex/hybridauth 폴더를 만들고 테스트 코드 작성
[root@zetawiki hybridauth]# cd /var/www/html
[root@zetawiki html]# mkdir -p ex/hybridauth
[root@zetawiki html]# cd ex/hybridauth
[root@zetawiki hybridauth]# vi test.php
<?php
require_once( "vendor/hybridauth/hybridauth/Hybrid/Auth.php" );
require_once( "vendor/hybridauth/hybridauth/Hybrid/Endpoint.php" );

Hybrid_Endpoint::process();

3 웹 테스트[ | ]

HybridAuth
Open Source Social Sign On PHP Library. 
hybridauth.sourceforge.net/
→ 라이브러리가 잘 연동되었음

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}