roshandelpoor/super-tools
Composer 安装命令:
composer require roshandelpoor/super-tools
包简介
super tools is practical function in Laravel
README 文档
README
Super Tools is a Laravel package that provides practical functions to make your coding life easier. It includes a variety of tools that can be used in any Laravel project.
Installation
You can install Super Tools using Composer. Simply run the following command:
1- composer require "roshandelpoor/super-tools" 2- composer dump-autoload 3- add this line in config/app.php -> in part 'providers' => [] Super\SuperToolsServiceProvider::class,
Usage
To use Super Tools in your project, simply include the autoload file and start using the functions. Here's an example:
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Super\Tools; class TestPackageController extends Controller { public function package () { $superToolsPackage = new Tools(); echo $superToolsPackage->persianToEnglishNumber('۱۴۰۲'); } }
Functions
Super Tools includes the following functions:
- persianToEnglishNumber - englishToPersianNumber - base64ToImage - getExtensionFileFromBase64 - checkKeyRedisIsLock - removeKeyRedisIsLock - removeCountryNumberPhoneForIran - set_queryStringRedis - get_queryStringRedis - delete_queryStringRedis - validateNationalCode - generateRandomToken - openssl_encrypt_project - openssl_decrypt_project - helper_strToHex - helper_hexToStr - isMobile - isShaba - deviceIsMobile - dateCheckBetweenTwoDates - nameDayEnglishToPersian - generateSecurePassword - stringSearch - getIP - checkCountryIP - getServerInfo - getFileInfo
Contributing
If you find any bugs or have suggestions for new features, feel free to open an issue or submit a pull request on GitHub.
License
Super Tools is open-source software licensed under the MIT license.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-02