PHP Package: litesaml/lightsaml
LightSAML is a PHP library providing a secure and simple way to implement SAML-based authentication and authorization in web applications.
Current Version: 4.2.0
Last Updated: Date not available
PHP Requirement: >=7.4
Dependencies:
litesaml/litesaml
litesaml/litesaml
⚠️ To ensure full functionality, the above dependencies might be required.
Package Description
LightSAML is a powerful yet lightweight PHP library designed to facilitate SAML integration, enabling secure user authentication and authorization processes in web applications. With detailed documentation and robust features, LightSAML streamlines SAML workflows, ensuring seamless user experiences and heightened security measures throughout your application.
Classes:
- LightSaml\Builder\EntityDescriptor\SimpleEntityDescriptorBuilder
- LightSaml\Builder\Context\ProfileContextBuilder
- LightSaml\Builder\Profile\Metadata\MetadataProfileBuilder
- LightSaml\Builder\Profile\ProfileBuilderInterface
- LightSaml\Builder\Profile\WebBrowserSso\Sp\SsoSpSendAuthnRequestProfileBuilder
- LightSaml\Builder\Profile\WebBrowserSso\Sp\SsoSpSendAuthnRequestProfileBuilderFactory
- LightSaml\Builder\Profile\WebBrowserSso\Sp\SsoSpReceiveResponseProfileBuilder
- LightSaml\Builder\Profile\AbstractProfileBuilder
- LightSaml\Builder\Action\Profile\Metadata\MetadataActionBuilder
- LightSaml\Builder\Action\Profile\AbstractProfileActionBuilder
- LightSaml\Builder\Action\Profile\SingleSignOn\Sp\SsoSpValidateAssertionActionBuilder
- LightSaml\Builder\Action\Profile\SingleSignOn\Sp\SsoSpReceiveResponseActionBuilder
- LightSaml\Builder\Action\Profile\SingleSignOn\Sp\SsoSpSendAuthnRequestActionBuilder
- LightSaml\Builder\Action\CompositeActionBuilder
- LightSaml\Builder\Action\ActionBuilderInterface
- LightSaml\Validator\Model\Subject\SubjectValidatorInterface
- LightSaml\Validator\Model\Subject\SubjectValidator
- LightSaml\Validator\Model\Signature\SignatureValidator
- LightSaml\Validator\Model\Signature\SignatureValidatorInterface
- LightSaml\Validator\Model\Xsd\XsdValidator
- LightSaml\Validator\Model\Xsd\XsdError
- LightSaml\Validator\Model\Statement\StatementValidator
- LightSaml\Validator\Model\Statement\StatementValidatorInterface
- LightSaml\Validator\Model\NameId\NameIdValidator
- LightSaml\Validator\Model\NameId\NameIdValidatorInterface
- LightSaml\Validator\Model\Assertion\AssertionValidatorInterface
- LightSaml\Validator\Model\Assertion\AssertionTimeValidator
- LightSaml\Validator\Model\Assertion\AssertionValidator
- LightSaml\Validator\Model\Assertion\AssertionTimeValidatorInterface
- LightSaml\Provider\EntityDescriptor\EntityDescriptorProviderInterface
- LightSaml\Provider\EntityDescriptor\FileEntityDescriptorProviderFactory
- LightSaml\Provider\EntityDescriptor\FileEntityDescriptorProvider
- LightSaml\Provider\EntityDescriptor\EntitiesDescriptorEntityProvider
- LightSaml\Provider\EntityDescriptor\FixedEntityDescriptorProvider
- LightSaml\Provider\Attribute\FixedAttributeValueProvider
- LightSaml\Provider\Attribute\AttributeValueProviderInterface
- LightSaml\Provider\Credential\CredentialProviderInterface
- LightSaml\Provider\Credential\X509CredentialFileProvider
- LightSaml\Provider\EntitiesDescriptor\EntitiesDescriptorProviderInterface
- LightSaml\Provider\EntitiesDescriptor\FileEntitiesDescriptorProvider
- LightSaml\Provider\NameID\NameIdProviderInterface
- LightSaml\Provider\NameID\FixedNameIdProvider
- LightSaml\Provider\Session\FixedSessionInfoProvider
- LightSaml\Provider\Session\SessionInfoProviderInterface
- LightSaml\Provider\TimeProvider\SystemTimeProvider
- LightSaml\Provider\TimeProvider\TimeProviderInterface
- LightSaml\ClaimTypes
- LightSaml\Helper
- LightSaml\State\Sso\SsoSessionState
- LightSaml\State\Sso\SsoState
- LightSaml\State\Request\RequestState
- LightSaml\State\Request\RequestStateParameters
- LightSaml\Context\ContextInterface
- LightSaml\Context\AbstractContext
- LightSaml\Context\Profile\EndpointContext
- LightSaml\Context\Profile\Helper\MessageContextHelper
- LightSaml\Context\Profile\Helper\AssertionContextHelper
- LightSaml\Context\Profile\Helper\LogHelper
- LightSaml\Context\Profile\HttpRequestContext
- LightSaml\Context\Profile\LogoutContext
- LightSaml\Context\Profile\ExceptionContext
- LightSaml\Context\Profile\MessageContext
- LightSaml\Context\Profile\AssertionContext
- LightSaml\Context\Profile\AbstractProfileContext
- LightSaml\Context\Profile\EntityContext
- LightSaml\Context\Profile\HttpResponseContext
- LightSaml\Context\Profile\ProfileContext
- LightSaml\Context\Profile\ProfileContexts
- LightSaml\Context\Profile\RequestStateContext
- LightSaml\Binding\BindingFactory
- LightSaml\Binding\HttpRedirectBinding
- LightSaml\Binding\HttpPostBinding
- LightSaml\Binding\AbstractBinding
- LightSaml\Binding\BindingFactoryInterface
- LightSaml\Binding\SamlPostResponse
- LightSaml\Model\Metadata\RoleDescriptor
- LightSaml\Model\Metadata\SingleSignOnService
- LightSaml\Model\Metadata\ContactPerson
- LightSaml\Model\Metadata\IndexedEndpoint
- LightSaml\Model\Metadata\Organization
- LightSaml\Model\Metadata\Endpoint
- LightSaml\Model\Metadata\EntityDescriptor
- LightSaml\Model\Metadata\SpSsoDescriptor
- LightSaml\Model\Metadata\SingleLogoutService
- LightSaml\Model\Metadata\EntitiesDescriptor
- LightSaml\Model\Metadata\KeyDescriptor
- LightSaml\Model\Metadata\Metadata
- LightSaml\Model\Metadata\IdpSsoDescriptor
- LightSaml\Model\Metadata\EndpointReference
- LightSaml\Model\Metadata\SSODescriptor
- LightSaml\Model\Metadata\AssertionConsumerService
- LightSaml\Model\XmlDSig\SignatureStringReader
- LightSaml\Model\XmlDSig\SignatureWriter
- LightSaml\Model\XmlDSig\Signature
- LightSaml\Model\XmlDSig\SignatureXmlReader
- LightSaml\Model\XmlDSig\AbstractSignatureReader
- LightSaml\Model\Context\DeserializationContext
- LightSaml\Model\Context\SerializationContext
- LightSaml\Model\SamlElementInterface
- LightSaml\Model\Protocol\AuthnRequest
- LightSaml\Model\Protocol\Response
- LightSaml\Model\Protocol\Status
- LightSaml\Model\Protocol\AbstractRequest
- LightSaml\Model\Protocol\LogoutResponse
- LightSaml\Model\Protocol\SamlMessage
- LightSaml\Model\Protocol\StatusResponse
- LightSaml\Model\Protocol\StatusCode
- LightSaml\Model\Protocol\NameIDPolicy
- LightSaml\Model\Protocol\LogoutRequest
- LightSaml\Model\AbstractSamlModel
- LightSaml\Model\Assertion\Subject
- LightSaml\Model\Assertion\AudienceRestriction
- LightSaml\Model\Assertion\AbstractStatement
- LightSaml\Model\Assertion\Assertion
- LightSaml\Model\Assertion\SubjectConfirmationData
- LightSaml\Model\Assertion\AbstractCondition
- LightSaml\Model\Assertion\EncryptedAssertionWriter
- LightSaml\Model\Assertion\ProxyRestriction
- LightSaml\Model\Assertion\AuthnStatement
- LightSaml\Model\Assertion\SubjectConfirmation
- LightSaml\Model\Assertion\EncryptedElementWriter
- LightSaml\Model\Assertion\EncryptedAssertionReader
- LightSaml\Model\Assertion\AttributeStatement
- LightSaml\Model\Assertion\EncryptedElement
- LightSaml\Model\Assertion\Attribute
- LightSaml\Model\Assertion\SubjectLocality
- LightSaml\Model\Assertion\Advice
- LightSaml\Model\Assertion\AuthnContext
- LightSaml\Model\Assertion\OneTimeUse
- LightSaml\Model\Assertion\Issuer
- LightSaml\Model\Assertion\Conditions
- LightSaml\Model\Assertion\NameID
- LightSaml\Model\Assertion\AbstractNameID
- LightSaml\Model\Assertion\EncryptedElementReader
- LightSaml\Build\Container\OwnContainerInterface
- LightSaml\Build\Container\PartyContainerInterface
- LightSaml\Build\Container\ProviderContainerInterface
- LightSaml\Build\Container\BuildContainerInterface
- LightSaml\Build\Container\CredentialContainerInterface
- LightSaml\Build\Container\StoreContainerInterface
- LightSaml\Build\Container\ServiceContainerInterface
- LightSaml\Build\Container\SystemContainerInterface
- LightSaml\Profile\Profiles
- LightSaml\Resolver\Credential\PrivateKeyResolver
- LightSaml\Resolver\Credential\PublicKeyThumbprintResolver
- LightSaml\Resolver\Credential\CompositeFilterResolver
- LightSaml\Resolver\Credential\UsageFilterResolver
- LightSaml\Resolver\Credential\CredentialResolverQuery
- LightSaml\Resolver\Credential\CompositeUnionResolver
- LightSaml\Resolver\Credential\X509CredentialResolver
- LightSaml\Resolver\Credential\EntityIdResolver
- LightSaml\Resolver\Credential\AbstractCompositeResolver
- LightSaml\Resolver\Credential\AbstractQueryableResolver
- LightSaml\Resolver\Credential\AlgorithmFilterResolver
- LightSaml\Resolver\Credential\MetadataFilterResolver
- LightSaml\Resolver\Credential\Factory\CredentialResolverFactory
- LightSaml\Resolver\Credential\CredentialNameFilterResolver
- LightSaml\Resolver\Credential\CredentialResolverInterface
- LightSaml\Resolver\Endpoint\IndexEndpointResolver
- LightSaml\Resolver\Endpoint\EndpointResolverInterface
- LightSaml\Resolver\Endpoint\DescriptorTypeEndpointResolver
- LightSaml\Resolver\Endpoint\CompositeEndpointResolver
- LightSaml\Resolver\Endpoint\ServiceTypeEndpointResolver
- LightSaml\Resolver\Endpoint\LocationEndpointResolver
- LightSaml\Resolver\Endpoint\Criteria\LocationCriteria
- LightSaml\Resolver\Endpoint\Criteria\IndexCriteria
- LightSaml\Resolver\Endpoint\Criteria\DescriptorTypeCriteria
- LightSaml\Resolver\Endpoint\Criteria\BindingCriteria
- LightSaml\Resolver\Endpoint\Criteria\ServiceTypeCriteria
- LightSaml\Resolver\Endpoint\BindingEndpointResolver
- LightSaml\Resolver\Signature\OwnSignatureResolver
- LightSaml\Resolver\Signature\SignatureResolverInterface
- LightSaml\Resolver\Session\SessionProcessorInterface
- LightSaml\Resolver\Session\SessionProcessor
- LightSaml\Error\LightSamlModelException
- LightSaml\Error\LightSamlSecurityException
- LightSaml\Error\LightSamlSessionNotFoundException
- LightSaml\Error\LightSamlContextException
- LightSaml\Error\LightSamlAuthenticationException
- LightSaml\Error\LightSamlException
- LightSaml\Error\LightSamlBuildException
- LightSaml\Error\LightSamlXmlException
- LightSaml\Error\LightSamlValidationException
- LightSaml\Error\LightSamlBindingException
- LightSaml\Error\LightSamlActionException
- LightSaml\Error\LightSamlProfileException
- LightSaml\Credential\X509Credential
- LightSaml\Credential\AbstractCredential
- LightSaml\Credential\Context\MetadataCredentialContext
- LightSaml\Credential\Context\CredentialContextInterface
- LightSaml\Credential\Context\CredentialContextSet
- LightSaml\Credential\UsageType
- LightSaml\Credential\CredentialInterface
- LightSaml\Credential\X509CredentialInterface
- LightSaml\Credential\X509Certificate
- LightSaml\Credential\KeyHelper
- LightSaml\Credential\Criteria\PublicKeyThumbprintCriteria
- LightSaml\Credential\Criteria\PrivateKeyCriteria
- LightSaml\Credential\Criteria\MetadataCriteria
- LightSaml\Credential\Criteria\EntityIdCriteria
- LightSaml\Credential\Criteria\X509CredentialCriteria
- LightSaml\Credential\Criteria\TrustCriteriaInterface
- LightSaml\Credential\Criteria\CredentialNameCriteria
- LightSaml\Credential\Criteria\UsageCriteria
- LightSaml\Credential\Criteria\AlgorithmCriteria
- LightSaml\Event\ActionOccurred
- LightSaml\Event\MessageReceived
- LightSaml\Event\MessageSent
- LightSaml\Bridge\Pimple\Container\ServiceContainer
- LightSaml\Bridge\Pimple\Container\StoreContainer
- LightSaml\Bridge\Pimple\Container\AbstractPimpleContainer
- LightSaml\Bridge\Pimple\Container\CredentialContainer
- LightSaml\Bridge\Pimple\Container\BuildContainer
- LightSaml\Bridge\Pimple\Container\ProviderContainer
- LightSaml\Bridge\Pimple\Container\Factory\OwnContainerProvider
- LightSaml\Bridge\Pimple\Container\Factory\ServiceContainerProvider
- LightSaml\Bridge\Pimple\Container\Factory\CredentialContainerProvider
- LightSaml\Bridge\Pimple\Container\Factory\SystemContainerProvider
- LightSaml\Bridge\Pimple\Container\Factory\StoreContainerProvider
- LightSaml\Bridge\Pimple\Container\Factory\PartyContainerProvider
- LightSaml\Bridge\Pimple\Container\Factory\ProviderContainerProvider
- LightSaml\Bridge\Pimple\Container\SystemContainer
- LightSaml\Bridge\Pimple\Container\PartyContainer
- LightSaml\Bridge\Pimple\Container\OwnContainer
- LightSaml\Store\EntityDescriptor\FixedEntityDescriptorStore
- LightSaml\Store\EntityDescriptor\FileEntityDescriptorStore
- LightSaml\Store\EntityDescriptor\CompositeEntityDescriptorStore
- LightSaml\Store\EntityDescriptor\EntityDescriptorStoreInterface
- LightSaml\Store\Credential\MetadataCredentialStore
- LightSaml\Store\Credential\CompositeCredentialStore
- LightSaml\Store\Credential\StaticCredentialStore
- LightSaml\Store\Credential\Factory\CredentialFactory
- LightSaml\Store\Credential\X509FileCredentialStore
- LightSaml\Store\Credential\CredentialStoreInterface
- LightSaml\Store\Sso\SsoStateStoreInterface
- LightSaml\Store\Sso\SsoStateSessionStore
- LightSaml\Store\Sso\SsoStateFixedStore
- LightSaml\Store\Id\IdStoreInterface
- LightSaml\Store\Id\IdArrayStore
- LightSaml\Store\Id\NullIdStore
- LightSaml\Store\Request\RequestStateStoreInterface
- LightSaml\Store\Request\RequestStateArrayStore
- LightSaml\Store\Request\RequestStateSessionStore
- LightSaml\Store\Request\AbstractRequestStateArrayStore
- LightSaml\Store\TrustOptions\StaticTrustOptionsStore
- LightSaml\Store\TrustOptions\TrustOptionsStoreInterface
- LightSaml\Store\TrustOptions\FixedTrustOptionsStore
- LightSaml\Store\TrustOptions\CompositeTrustOptionsStore
- LightSaml\SamlConstants
- LightSaml\Meta\SigningOptions
- LightSaml\Meta\ParameterBag
- LightSaml\Meta\TrustOptions\TrustOptions
- LightSaml\Criteria\CriteriaInterface
- LightSaml\Criteria\CriteriaSet
- LightSaml\Action\LoggableAction
- LightSaml\Action\WrappedAction
- LightSaml\Action\CompositeAction
- LightSaml\Action\ActionLogWrapper
- LightSaml\Action\ActionWrapperInterface
- LightSaml\Action\DispatchEventAction
- LightSaml\Action\ActionInterface
- LightSaml\Action\CatchableErrorAction
- LightSaml\Action\Profile\Outbound\Message\MessageVersionAction
- LightSaml\Action\Profile\Outbound\Message\CreateMessageIssuerAction
- LightSaml\Action\Profile\Outbound\Message\SaveRequestStateAction
- LightSaml\Action\Profile\Outbound\Message\ResolveEndpointIdpSsoAction
- LightSaml\Action\Profile\Outbound\Message\DestinationAction
- LightSaml\Action\Profile\Outbound\Message\ResolveEndpointSloAction
- LightSaml\Action\Profile\Outbound\Message\ForwardRelayStateAction
- LightSaml\Action\Profile\Outbound\Message\ResolveEndpointBaseAction
- LightSaml\Action\Profile\Outbound\Message\MessageIssueInstantAction
- LightSaml\Action\Profile\Outbound\Message\MessageIdAction
- LightSaml\Action\Profile\Outbound\Message\SignMessageAction
- LightSaml\Action\Profile\Outbound\Message\ResolveEndpointSpAcsAction
- LightSaml\Action\Profile\Outbound\Message\SendMessageAction
- LightSaml\Action\Profile\Outbound\Message\SetRelayStateAction
- LightSaml\Action\Profile\Outbound\AuthnRequest\CreateAuthnRequestAction
- LightSaml\Action\Profile\Outbound\AuthnRequest\ACSUrlAction
- LightSaml\Action\Profile\Inbound\Response\HasBearerAssertionsValidatorAction
- LightSaml\Action\Profile\Inbound\Response\HasAssertionsValidatorAction
- LightSaml\Action\Profile\Inbound\Response\HasAuthnStatementValidatorAction
- LightSaml\Action\Profile\Inbound\Response\AssertionAction
- LightSaml\Action\Profile\Inbound\Response\SpSsoStateAction
- LightSaml\Action\Profile\Inbound\Response\DecryptAssertionsAction
- LightSaml\Action\Profile\Inbound\Message\AssertBindingTypeAction
- LightSaml\Action\Profile\Inbound\Message\MessageSignatureValidatorAction
- LightSaml\Action\Profile\Inbound\Message\DestinationValidatorAuthnRequestAction
- LightSaml\Action\Profile\Inbound\Message\IssuerValidatorAction
- LightSaml\Action\Profile\Inbound\Message\ResolvePartyEntityIdAction
- LightSaml\Action\Profile\Inbound\Message\ReceiveMessageAction
- LightSaml\Action\Profile\Inbound\Message\AbstractDestinationValidatorAction
- LightSaml\Action\Profile\Inbound\Message\EntityIdFromMessageIssuerAction
- LightSaml\Action\Profile\Inbound\Message\DestinationValidatorResponseAction
- LightSaml\Action\Profile\Inbound\StatusResponse\StatusAction
- LightSaml\Action\Profile\Inbound\StatusResponse\InResponseToValidatorAction
- LightSaml\Action\Profile\Entity\SerializeOwnEntityAction
- LightSaml\Action\Profile\AbstractProfileAction
- LightSaml\Action\Profile\FlushRequestStatesAction
- LightSaml\Action\NullAction
- LightSaml\Action\DebugPrintTreeActionInterface
- LightSaml\Action\CompositeActionInterface
- LightSaml\Action\Assertion\AbstractAssertionAction
- LightSaml\Action\Assertion\Inbound\AssertionValidatorAction
- LightSaml\Action\Assertion\Inbound\RepeatedIdValidatorAction
- LightSaml\Action\Assertion\Inbound\AssertionSignatureValidatorAction
- LightSaml\Action\Assertion\Inbound\TimeValidatorAction
- LightSaml\Action\Assertion\Inbound\RecipientValidatorAction
- LightSaml\Action\Assertion\Inbound\KnownAssertionIssuerAction
- LightSaml\Action\Assertion\Inbound\AssertionIssuerFormatValidatorAction
- LightSaml\Action\Assertion\Inbound\InResponseToValidatorAction
Download Latest Version: 4.2.0

Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/litesaml/lightsaml/4.2.0/loader.php';
require_once 'libs/litesaml/litesaml/{lib_version}/loader.php';
use LightSaml\Model\Metadata\EntityDescriptor;
use LightSaml\Model\Protocol\AuthnRequest;
$obj = new EntityDescriptor();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.