Creer des fichiers excel avec PHP !
Publié par micka39 dans Astuces, Bons plans, Gratuit, Internet, Microsoft Office, PHP
Cet article a été publié il y a 2 ans 11 mois 9 jours, il est donc possible qu’il ne soit plus à jour. Les informations proposées sont donc peut-être expirées. Merci de me signaler via un commentaire si vous remarquez un lien hors service ou une autre information .Auparavant on créait des fichier csv afin de remplacer le format xls qui est propriétaire de Microsoft .
Cette fois ci vous pourrez creer de vrai fichier xls avec graphique , formule grâce au framework PHP excel disponible sur codeplex .
Voici la liste des fonctions (en anglais) :
Create an in-memory spreadsheet representation Set spreadsheet meta data (author, title, description, …) Add worksheets to spreadsheet Add data and formulas to individual cells Merge cells Protect ranges of cells with a password Supports setting cell width and height Supports different fonts and font styles Supports formatting, styles, cell borders, fills, gradients, … Supports different data types for individual cells Supports cell text wrapping Supports conditional formatting Supports column auto-sizing Supports rich-text strings Supports autofilter Supports « freezing » cell panes Supports workbook-level security Supports worksheet-level protection Cell data validation Insert/remove rows/columns Calculate formula values Add images to your spreadsheet Set image styles
- Positioning
- Rotation
- Shadow
Set printing options
- Header
- Footer
- Page margins
- Paper size
- Orientation
- Row and column breaks
Output your spreadsheet object to different file formats
- Excel 2007 (spreadsheetML)
- BIFF5 (Excel 97 and higher)
- PHPExcel Serialized Spreadsheet
- CSV (Comma Separated Values)
- HTML
Read different file formats into your spreadsheet object
- Excel 2007 (spreadsheetML)
- PHPExcel Serialized Spreadsheet
- CSV (Comma Separated Values)
Il ne vous reste plus qu’a le tester !
Framework disponible pour PHP version 5.2 et il faut avoir l’extensionphp_zip d’activer .
Update : Vous avez la possibilite d’enregistrer en xls , xlsx , csv .
Pour creer vos propre fichier xls via votre application web suivez ce lien …
Mots clés Technorati : excel, php, framework

Entrées (flux RSS)
[...] trouve de tout sur CodePlex, la plate-forme Open Source Microsoft ! La preuve, Micka a trouvé un framework PHP lui permettant de générer des .xls ! Idéal pour vos applications .php voulant générer des catalogues compatibles Office [...]