Skip to content

maple-yang/bookexcel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 Commits

Repository files navigation

Bookexcel

Export excel to txt,csv,json,xml and generate parse code for C#,PHP.... Mostly use in game.

Feture

  • Works on Windows,Linux and Mac OX S
  • Support .xls .xlsx and .ods format
  • Batch works
  • Filter by: file name,sheet name,column,row
  • Support merge sheets and columns
  • Export for client or server individual
  • Easy to extend your own export format and parse code

How to use

  1. Install php and make sure php in PATH

  2. Edit bookexcel.php, add base params, for example:

     $params['inputPath'] = 'excelDir'; $params['outputPath'] = 'excelExports'; $params['codeType'] = 'C#'; $params['codeSavePath'] = 'src'; $bk = new Bookexcel(); $bk->convertExcels($params); 
  3. Run command:

     php bookexcel.php 

    For Windows, you can also put php in runtime dir and run bookexcel.bat.

Requirement

  • php 5.4 or higher

License

Bookexcel is licensed under the MIT License. See the LICENSE file for more information.

About

May be the best export excel tool for game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP68.6%
  • C#31.3%
  • Batchfile0.1%