dgsplash / php-services
Commonly used services in any PHP Project
v1.2.9
2023-08-03 12:40 UTC
Requires
- php: >=7.4
- intervention/image: ^2.7
- phpmailer/phpmailer: ^6.8
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-12-20 09:49:12 UTC
README
To install Via Composer: composer require dgsplash/php-services
Packagist Link: https://packagist.org/packages/dgsplash/php-services
Structure
Exceptions
Customized Exception Classes.
- Check Exceptions Folder for the full list
Helpers
- Cookie
- Helper
- Machine Info
- MetaSeo
- Script
- ServerCache
- Style
- Validator
Microservices
Accounting
- Helpers
- Currency
- Models
- Currency Position
Date
- Helpers
- Date
- Models
- Date Formats
- Date Format Types
- Date Types
Language
Supported Languages: (English, Arabic, French)
- Helpers
- Language
- Translate
- Mappings
- Date
- Exceptions
- Global
- Number
- Models
- Lang
Media
- Helpers
- Media
- Models
- Facebook Image
- Image
Models
- Code
- HTTP Codes
- Status
Renders
- Accordion
- Tabs
Default Functions
The below functions are used to set the default values before starting to code
Helpers
-
Cookie
- SetExpireInUnix(
int $unix
) - SetExpireInDays(
int $days
) - SetPrefix(
string $prefix
) - SetPath(
string $path
) - SetDomain(
string $domain
) - SetSecure(
bool $secure
) - SetHttpOnly(
bool $httpOnly
)
- SetExpireInUnix(
-
MetaSeo
- AddToMetaArray(
string $key, array $array
) - AddToPreHeadArray(
string $key, string $text
) - AddToPostHeadArray(
string $key, string $text
) - SetClientName(
string $var
) - SetPreTitle(
string $var
) - SetPostTitle(
string $var
) - SetTitle(
string $var
) - SetAuthor(
string $var
) - SetKeywords(
string $var
) - SetDescription(
string $var
) - SetPhoto(
string $var
) - SetUrl(
string $var
) - SetRobots(
bool $isLive
) - SetRevisitAfter(
string $var
) - SetFavicon(
string $var
) - SetContentType(
string $var
) - SetXuaCompatible(
string $var
) - SetViewport(
string $var
) - SetGoolgeSiteVerification(
string $var
) - SetCopyright(
string $var
) - SetAppleMobileWebAppCapable(
string $var
) - SetAppleMobileWebAppStatusBarStyle(
string $var
) - SetFacebookType(
string $var
) - SetFacebookAppId(
string $var
) - SetFacebookAdmins(
string $var
) - SetTwitterCard(
string $var
)
- AddToMetaArray(
-
Script
- AddFile(
string $key, string $file
) - AddScript(
string $key, string $script
) - GetFilesIncludes()
- AddFile(
-
ServerCache
- SetVersion(
string $version
) - SetCacheFolder(
string $cacheFolder
) - SetVersionFolder(
string $versionFolder
)
- SetVersion(
-
Style
- AddFile(
string $key, string $file
) - AddStyle(
string $key, string $style
) - GetFilesIncludes()
- AddFile(
Microservices
-
Notification
- Models
- EmailConfiguration
- setHost(
string $host
) - setPort(
string $port
) - setUsername(
string $username
) - setPassword(
string $password
) - setEncryption(
string $encryption
) - setFromName(
string $from
) - setFromEmail(
string $email
) - setReplyTo(
string $replyTo
)
- setHost(
- EmailConfiguration
- Models
-
Language
- Helpers
- Language
- SetDefault(
string $var
) - SetActive(
string $var
)
- SetDefault(
- Translate
- AddDefaults()
- AddCustomDir(
string $customDir
)
- Language
- Helpers
-
Media
- SetMediaFolder(
string $var
) - SetUploadDir(
string $var
) - SetMediaRoot(
string $var
) - SetWebsiteVersion(
string $var
)
- SetMediaFolder(
To Revisit
- MachineInfo
- GetIpInfo