定制 thealgoslingers/algoslingfileanew 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thealgoslingers/algoslingfileanew

最新稳定版本:v1.0.0

Composer 安装命令:

composer require thealgoslingers/algoslingfileanew

包简介

Rename file in unique and pretty way.

README 文档

README

The package Algoslingfileanew allows you to give a unique name to your file. The mechanism is strong that no matter how many files you rename, even if they're millions they will still have their unique name preventing duplication of files. The package gives 4 options to rename file. (ie alphabets/numbers/hash/unique/alphanumeric) You can rename your file in unique way.

Contribution is allowed ❤️

How to install

-- composer require thealgoslingera/algoslingfileanew
HOW TO RENAME FILE AND/OR SAVE TO DIRECTORY
   <?php
   use Thealgoslingers\AlgoslingFileanew
   
   ## For file(s) being uploaded to server
   ## Please upload the file first
   ## Then use AlgoslingFileanew to rename it

   require "../vendor/autoload.php";
   
   $file = "path-to-your-file.extension";
   $AlgoslingFileanew = new AlgoslingFileanew;
   $newFile = $AlgoslingFileanew->renameFile($file,"Alnum");
   ## SAVE TO DIRECTORY (OPTIONAL) ##
   fopen("directory-path/$newFile","a");
   $AlgoslingFileanew = new AlgoslingFileanew();
   ?>

Tips

You may use strtolower($newFile) to rename in lowercase or strtoupper($newFile) to rename in uppercase

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-06