
שפה 🇮🇱 עברית
התחלה מהירה
שימוש
תיעוד
SDK SSO של FastComments ל-PHP
זה ה-SDK הרשמי ב-PHP עבור SSO של FastComments.
SDK ב-PHP לאינטגרציה של SSO עם FastComments
מאגר
שימוש 
SSO פשוט
SSO פשוט קל לשימוש, אך מספק אבטחה פחותה בהשוואה ל-SSO מאובטח:
use FastComments\SSO\FastCommentsSSO;
use FastComments\SSO\SimpleSSOUserData;
// Create user data
$userData = SimpleSSOUserData::create(
'username123',
'user@example.com',
'https://example.com/avatar.png'
);
// With URL-based login/logout
$sso = FastCommentsSSO::createWithUrls(
null,
$userData,
'https://example.com/login',
'https://example.com/logout'
);
// Or with callbacks
$sso = FastCommentsSSO::createWithCallbacks(
$userData,
function($url) { /* טפל בהתחברות */ },
function($url) { /* טפל בהתנתקות */ }
);
// Get the token to pass to FastComments
$token = $sso->prepareToSend();
SSO מאובטח
SSO מאובטח מספק אבטחה משופרת באמצעות אימות HMAC:
use FastComments\SSO\FastCommentsSSO;
use FastComments\SSO\SecureSSOUserData;
// Create user data
$userData = SecureSSOUserData::create(
'user-123',
'user@example.com',
'username123',
'https://example.com/avatar.png'
);
// Add optional data if needed
$userData->isAdmin = true;
$userData->groupIds = ['group-1', 'group-2'];
// Create the SSO object with your API key
$sso = FastCommentsSSO::createSecure('your-api-key', $userData);
// Get the token to pass to FastComments
$token = $sso->prepareToSend();
תיעוד 
לתיעוד המלא על SSO של FastComments, עיינו ב-תיעוד FastComments.
זקוקים לעזרה?
אם אתם נתקלים בבעיות או יש לכם שאלות לגבי ה-PHP SSO SDK, אנא:
תרומות
תרומות מתקבלות בברכה! אנא בקרו ב-מאגר GitHub לקבלת הנחיות לתרומה.