How can I create complex reports with PHP / Symfony2? [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to create large and complex reports (with graphs, images, pagination, headers and footers, etc) from my Symfony 2 application.
I've been searching the web, looking for Symfony or PHP complete report generators (like Crystal Reports, Report Builder or JasperReports), but I haven't found anything. The only thing I've found are some libraries to generate PDF's from PHP, and the wkhtml2pdf tool.
Is there any reporting tool for Symfony 2 or, at least, for PHP? Or must I use JasperReports and search or write any plugin to call Jasper from Symfony? I haven't deployment constraints because I have my own VPS (no shared server), so I have root access.

For a "pure" PHP solution, you can use PHPJasperXML, which renders Jasper Reports natively into PHP, so you don't need to setup Java and a bridge for PHP, there are some limitations as this is not an official implementation, but it's pretty useful nonetheless.
By the way, the reports can be created with IReport, and then simply used on PHPJasperXML.

Related

SNMP monitoring & Web interface [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have read many articles, forums and informations about SNMP.
Even though I struggle with my project.
The goal of my project is to display data that I get from SNMP on a web page. (Nice designed interface). SNMP protocol is compulsory. And it should run on linux server (I want to add more devices in a final part of project e.g. router, switch.)
Could anyone tell me some quick info what has to be done (step by step review)?
I would be glad for every help. I am confused about what is the best way.
Ajax/database/websockets/traps?
I would like to use PHP or Node.js if it possible.
I'm doing a similar project for my internship :
I'm using Perl script for back-end with Net::SNMP for snmp request,
Perl CGI for front-end,
and JSON for DB.
I suggest using a framework to create the web interface, for example Django (https://www.djangoproject.com/) in python.
Then you could use a python library (pysnmp will be great) to retrieve the SNMP data, and create a custom View to show this data in a web page.
If you want to stick with PHP, you can use the functions described here http://php.net/manual/en/ref.snmp.php to access the SNMP server, and again using a framework will be great (Laravel, Symfony ...)

Build laravel from framework kernel [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I have started a project to convert some parts of laravel framework to compiled php extensions to improve the performance. I have created a git repository for the migrated parts and another for the laravel modification that will use that extension.
My question is how to build completly all laravel from framework kernel modified?
Do you think that I'm doing well?
I have started a project to convert some parts of laravel framework to
compiled php extensions to improve the performance
...
My question is how to build completly all laravel from framework kernel modified?
Just don't. Laravel is a framework that is changing quite frequently and your attempts to make it working as native code will fail, because every composer update command call will force you to rebuild native implementation.
If you want to put heavy effort for performance optimisation, then go for other frameworks as Falcon, or use Lumen as an alternative (it's lightweight version of Laravel). That's all I can tell about Laravel itself, because optimisation have not only place in Laravel kernel, but also in database design, scale of the project, and other network configuration settings.
Provide more specific information about bottlenecks in your project, and you will get answers that you are looking for.

centralize PHP code and MySQL data [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I currently have a dedicated server and I'm looking to set up a MySQL database, PHP query code and images directory that can be used by multiple sites. A majority of the sites will be hosted on the same machine, but some will not. My simple way of thinking is that this is possible similar to how Roundcube's code and database is centralized.
Looking for some expert input and direction on whether or not it is this simple or if there is a better way of accomplishing this.
In my opinion, you could two a couple of things to improve your situation:
store your images in just one place, and use that place as a CDN to deliver contents across your sites;
About your code:
if it's possible, use packages in order to create a single package for all the "common" code;
use this package on every site that needs that code, as a simple dependency. Tools like Composer are great to handle dependency management;
No big problems with MySQL databases unless you have big traffic numbers. In that case, you should study MySQL scaling. But first of all, focus on PHP and common assets (like images).
EDIT:
be sure to set appropriate permissions for the external sites, of course;
using packages for your dependencies will be very useful also for sites placed outside the dedicated server;

Framework for storing settings in a database (PHP and MySQL) [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
So after considering my options, I've opted to go with a database storage system to store applications settings. Given the fact that these settings will ultimately be changed every so often by the user, I decided implementing them into a database versus a config file (e.g. .ini file). What we're thinking of doing is storing these settings in a key/pair manner. The only trouble I'm having is finding an efficient way to access and write settings into the database.
My question is, are there any frameworks that you may use/heard of that helps to deal with this type of scenario? The only thing I've managed to find is endless discussions about the storage methods along with their pros and cons but nothing related to implementation of these methods.
Every framework. But. Why do you even need entire FRAMEWORK to just connect to database? Use native PDO included to every PHP installation. Use SQL libraries or plugins. Or consider using XML/CSV/INI files.
Still wanna frameworks that help with database? Here you go:
Yii
Zend
Symfony
Codeigniter
Laravel
Fat-Free
Kohana
CakePHP
Joomla
etc
"Full" list

Is it possible to use PHP frameworks for websites built on Joomla!? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am wondering whether I can use PHP frameworks such as Symfony2 or Laravel with a CMS like Joomla. I have worked with PHP, but a beginner of Joomla. I know I can use extensions like Sourcerer. But I would like to use Laravel of Symfony2 instead. For example if I am developing a website where there is a considerable amount of server-side programming and also a lot of web pages to display, could I use Joomla to handle the content management and a PHP framework for the server-side programming?
In brief my question is :
Is there any way to integrate a PHP framework(preferably Laravel or Symfony) into a website built on Joomla! ?
If it is not capable of doing, what are the other options available; or is it not recommended to use PHP frameworks along with Joomla?
It would be possible, to integrate your framework into a CMS - so your managers or reporters or whatever, can change content. But that would be horrible amount of work. Better use Content management systems on their own.
It is possible to use Symfony2 with the CMS RedKite. An "Extension - CMS" for it.
More information under:
http://redkite-labs.com/
It's not possible. Joomla is build with its own framework and API.
As of Laravel you could give https://github.com/FrozenNode/Laravel-Administrator a try. It's a sweet CMS for your own models. I love this, since it's not restricting your coding and you can work with your back-end code.
If you're looking for a more client-friendly solution, http://octobercms.com/ is in the works and should hopefully be released soon.

Categories