robotusers / cakephp-excel Goto Github PK
View Code? Open in Web Editor NEWCakePHP Spreadsheet (Excel) plugin.
License: MIT License
CakePHP Spreadsheet (Excel) plugin.
License: MIT License
It's possible to export other than data to file also a graph?
Error:
Deprecated (16384): Cake\Datasource\ConnectionManager::config() is deprecated. Use setConfig()/getConfig() instead. - /var/www/html/public/vendor/robotusers/cakephp-excel/config/bootstrap.php, line: 33
Is there a possibility, of doing the process to the contrary, make a find in the table and write in the file? In the case it would be a data export
This would make the plugin 3.6 only though. Should it be targetted for 1.0.0 release?
Hello,
I've followed your steps to get this plugin working with CakePHP 3.6, running PHP 7.2, those two first steps to get this excel plugin working.
All I keep getting is
The plugin class Robotusers\Excel\Plugin
cannot be found. Ensure your autoloader is correct.
I executed
composer require robotusers/cakephp-excel
Added to config/bootstrap.php:
Plugin::load('Robotusers/Excel', [ 'bootstrap' => true, ]);
In my src/Application.php
public function bootstrap()
{
// Call parent to load bootstrap from files.
parent::bootstrap();
$this->addPlugin('Robotusers/Excel');
}
In my controller:
public $helpers = ['Cewi/Excel.Excel'];
public function excel()
{
$registry = Registry::instance();
$table = $registry->get('records.xlsx', 'efproducts_products', [
'primaryKey' => 'id',
'columnMap' => [
'A' => 'project_name',
'B' => 'ef_type',
'C' => 'product_description'
]
]);
}
But I keep getting the error explained above.
What am I missing?
Thank you,
James
Looks like PHPExcel
would default to CSV writer while working with empty files without the extension.
Hi,
I'm following the first steps to get the plugin working, but I'm receiving an error message Error: The datasource configuration excel was not found in config\app.php.
Could someone help me to understand what is wrong?
This is my snippet code
use Robotusers\Excel\Registry;
...
$registry = Registry::instance();
$table = $registry->get($filePath, 'Clientes');
$row = $table->find()->first()->toArray();
print_r($row);
phpoffice/phpexcel is abandoned, use phpoffice/phpspreadsheet instead.
Friend It is not an issue, I want to know how i can use this plugin to generate excel file on the fly. I do not want to save file on server. It take data from database and write in spreadsheet and available user for download
Your quick response is appricited
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.