Creer des fichiers excel avec PHP !

small_phpexcel_logo

Aupa­ra­vant on créait des fichier csv afin de rempla­cer le format xls qui est proprié­taire de Micro­soft .

Cette fois ci vous pour­rez creer de vrai fichier xls avec graphique , formule grâce au frame­work PHP excel dispo­nible sur code­plex .

Voici la liste des fonc­tions (en anglais) :

  • Create an in-memory spread­sheet repre­sen­ta­tion
  • Set spread­sheet meta data (author, title, descrip­tion, …)
  • Add work­sheets to spread­sheet
  • Add data and formu­las to indi­vi­dual cells
  • Merge cells
  • Protect ranges of cells with a pass­word
  • Supports setting cell width and height
  • Supports different fonts and font styles
  • Supports format­ting, styles, cell borders, fills, gradients, …
  • Supports different data types for indi­vi­dual cells
  • Supports cell text wrap­ping
  • Supports condi­tio­nal format­ting
  • Supports column auto-sizing
  • Supports rich-text strings
  • Supports auto­fil­ter
  • Supports « free­zing » cell panes
  • Supports work­book-level secu­rity
  • Supports work­sheet-level protec­tion
  • Cell data vali­da­tion
  • Insert/remove rows/columns
  • Calcu­late formula values
  • Add images to your spread­sheet
  • Set image styles
    • Posi­tio­ning
    • Rota­tion
    • Shadow
  • Set prin­ting options
    • Header
    • Footer
    • Page margins
    • Paper size
    • Orien­ta­tion
    • Row and column breaks
  • Output your spread­sheet object to different file formats
    • Excel 2007 (spread­sheetML)
    • BIFF5 (Excel 97 and higher)
    • PHPEx­cel Seria­li­zed Spread­sheet
    • CSV (Comma Sepa­ra­ted Values)
    • HTML
  • Read different file formats into your spread­sheet object
    • Excel 2007 (spread­sheetML)
    • PHPEx­cel Seria­li­zed Spread­sheet
    • CSV (Comma Sepa­ra­ted Values)
  • Il ne vous reste plus qu’a le tester !

    Frame­work dispo­nible pour PHP version 5.2 et il faut avoir l’ex­ten­sion­php_zip d’ac­ti­ver .

    Update : Vous avez la possi­bi­lite d’en­re­gis­trer en xls , xlsx , csv .

    Pour creer vos propre fichier xls via votre appli­ca­tion web suivez ce lien …

    Mots clés Tech­no­rati : , ,

    One thought on “Creer des fichiers excel avec PHP !

    Les commentaires sont fermés.