can we draw graph with zend framework. I so, how to do data thing ? Is there some online resource to get familiar with it.
Thanks
I'm not sure about Zend Framework, but I seriously recommend Google Chart Tools API. It's easy to use and customize and is pretty powerful!
Edit: When I last used it, I generated the data using plain old PHP by looking at a javascript example and spotting the pattern, then just having php echo's everywhere I need them.
For creating graphs use http://thejit.org/
It will take some brain power, but I would recommend looking into Dojo simply because Zend has some built view helpers for dojo. At the end of the day, your going to have to integrate what ever solution your pick yourself.
Related
Background
I'm looking to create a wiki-style website.
First I took a look at http://en.wikipedia.org/wiki/List_of_wiki_software
Wanting to use PHP and being sceptic about using plain file storage the choice was lijited down to three alternatives:
Tiki Wiki CMS Groupware
PhpWiki
MediaWiki
Correct me if I'm wrong but all of these felt very heavyweight and pretty much overkill for a rather small project.
The question
My idea was then to use some kind of existing libraries and/or tools for the history, diff and markup parts but implementing the rest myself.
Do you know of any (good) libraries and/or tools like these?
Use an existing library like Markdown for marking up wiki text. Extend it if you have to. A diff algorithm for a wiki can be as trivial as you want it to be. First result on google for php diff showed an extremely simple algorithm that will probably get you started in the right direction.
PHP Diff Algorithm
PHP Markdown
Also don't forget about Github! There are all kinds of wiki projects written in PHP on there. Like this one!
I'm intrested in the best way to draw a graph: i have a network and i'd like to draw a map of it. I know how to use gd, but i don't know how to make this graph good for viewing: i mean no line crossing etc.
So, i guess there must be some tools or even php classes for doing this (maybe for graphviz dot?).
Any help will be great for me!
Well, maybe you could use the PEAR Image_GraphViz class?
Personally, I'd off-load the work of drawing the graph to the browser.
A good Javascript graphing library such as gRaphael can draw the graph using vector graphics (ie SVG), and can look much better than most static images generated by PHP, and can have features which static images can't, such as popups when you roll-over data points.
If you do it this way, all your PHP code has to supply is the graph data.
Hope that helps.
As you've laready hinted at, the quickest and simplest approach is to use graphviz. Given the abstraction provided by the dot language, there's little point in providing a PHP abstraction layer on top of it.
Use google!
http://code.google.com/apis/visualization/documentation/using_overview.html#load_your_libraries
They have great graphs. You just need to present the information in the right matter for google to understand. It's pretty simple.
I'm looking for a good library / API to draw a binary tree using PHP.
I've tried using Image_GraphViz, but it doesn't seem to work. I've also looked at phpsyntaxtree, but its not documented.
Alternatively, I'm also looking for a jQuery plugin that does this. (just not this one because it has no documentation).
Thanks
My suggestion is to go with js, because vector graphs are nicer and you can add interactivity anytime.
Try raphael, a good (and perfectly documented) js graph library
homepage | tree graph demo
I still believe GraphViz is what you need. If you had a problem in using it, just post a question about the problem. It will be better than finding an alternative tool.
im beginner in the php world i need to build option in web application that can convert well defined structures
into rtf/pdf from txt/html i found using this site search about LiveDocx php component that is dependent on Zend Framework
now im not familiar white the php engine ( the parser )
so im asking you experts is it good solution to use this components ? or its just over head ?
some simple to use tools:
if you want the easy approach try dompdf - The PHP 5 HTML to PDF Converter. It might work, depending on your html. you could also try ezPdf.
If you need to parse the html, try php's DOMDocument::loadHTML function. It will give you an object that accepts xpath queries for easy handling.
I just want to share my little experience after looking on the net a lot I found http://mpdf.bpm1.com/ this utility is a mix of libraries I´m using it to generate invoices on demand.
I expect this can be useful to you.
Have any bridge libraries been developed for PHP that provide access to the jQuery framework? Ideally it would be nice to have something fairly extensible so that creating jQuery-based content using PHP code would be fairly easy and customizeable. Does such a thing exist yet?
pquery
jqpie
jquery-php
There's a warmup list.
So far I've found one that seems to fit the description. I haven't tried it out yet, so if anyone has any feedback or experience with this or other ones don't hesitate to post!
PQuery
jQPie might be what you're after.
What can jQPie do?
Easily request and process data from php using $.getJSON
Inject php generated html into elements using $.(element).load
Call php functions directly from your web pages using $.jqpie
Call jQuery from php in respond to $.jqpie calls
Advanced autocomplete using jqpie_complete
QueryPath (http://querypath.org) is a full implementation of the jQuery DOM/XML/HTML part of jQuery. QueryPath has full CSS 3 selector support (including the stuff jQuery doesn't have, like XML namespace support). It also comes with DB tools, where you can run queries and have the results inserted into the query object. And it has a template engine, too. Like jQuery, you can write custom extensions very easily.
But it definitely takes advantage of its server-side status.
The main project page is at https://fedorahosted.org/querypath. You can download it there (and see lots of examples, including RSS and SVG manipulation).
Integrating with jQuery, then, can be done easily by sending XML data of many sorts down to jQuery. (You could probably send JSON, too... never tried.) And since the server side code and the client side code both look the same, there's less of a need to learn two totally different toolkits.