Download Latest Version yapd-0.4.tar.gz (8.9 kB)
Email in envelope

Get an email when there's a new version of yapd

Home
Name Modified Size InfoDownloads / Week
yapd-0.4.tar.gz 2012-08-29 8.9 kB
yapd-0.3.tar.gz 2012-08-23 8.9 kB
yapd-0.2.tar.gz 2012-08-21 8.6 kB
README 2012-08-21 1.7 kB
yapd-0.1.tar.gz 2012-08-21 9.5 kB
Totals: 5 Items   37.6 kB 0
Hi! I'm glad you have choosen yapd for your project.

One of the most boring things when I start a new project is to create all those
files that have to access my MySQL server and start coding the most basic CRUD
sentences... all those selects, inserts, deletes, updates...

But then I thought that I could find a software to do such a mechanical work,
and found phpdao (http://www.phpdao.com/) and was ok. And I realize that
software was the most popular MYSQL -> DAO in php out there... how come?! So I
decided to fix the bugs I have found; fixed that not all primary keys are
auto_increment, increase the amount of autogenerated phpdoc comments and the
most important upgrade... to use PDO (http://www.php.net/pdo) instead of the
(almost) deprecated mysql (http://www.php.net/manual/es/book.mysql.php).

I bet this software will have bugs (I hope you can help me to deal with
them) so,

* Inform me if you find one (or send me your fixes ;) )
* I am not responsible for any damage this software may cause in your proyect,
  in your computer, or even in your partner relationship.


To use this you only have to modify the file:
yapd/templates/class/sql/ConnectionProperty.class.php

and set your connection propertly.

Once done that, the only thing you should do is:

$ php generate.php <enter>

And voilà, you will find a new directory called "generated" with all the
required files to start coding!

I've tested it in my Ubuntu box with PHP version 5.3.10 but I think it should
work on all PHP version 5. If no, well, inform me and we will find a solution.

Oh, I have mention that I use PDO, so MySQL PDO module should be installed and
working in your current PHP installation.
Source: README, updated 2012-08-21