ever.zet

New symfony, doctrine, php bundles in sfMate

Introduction

Some time ago i've started to write completely new symfony bundle with current advantages & disadvantages in mind.

One of main goals for new bundle is near complete symfony snippets covering. With old bundle it was impossible, because there was name conflicts even on 90 snippets. It's logical, that the same operation of getting the User object is must named identical, so usr snippet in different places must be named identical, but produce different code.

sfPHP

With this idea in mind i start to searching the answer & found it fast enough in context system of TextMate. TextMate language definition option allows enter contexts for different code areas & run different snippets with same name, dependent on context.

Cool. Answer was found, but there's a huge problem with php in TM. PHP is template files. It means, that every *.php file is html, until [?php declaration. So, HTML bundle renders *.php until it finds [?php, after which it includes source.php bundle. There's no way to insert our context guessers in that scheme.

So, i decided to rewrite PHP bundle from scratch. I call it sfPHP & it has some cookies, that original bundle hasn't:

  1. correct "Go To Symbol" navigator inside classes & php code;
  2. symfony coding style guides in head;
  3. support of symfony, Doctrine & Propel contexts;

read more

sfSymfony

After lot of days & nights in work with sfPHP, i've started to think about features of final symfony bundle. It's now 1.0.0 version & will goes up very fast. But it's already has cool list of features:

  • symfony 1.4 ready;
  • almost full symfony coverage (>350 snippets);
  • class expander;
  • symfony help getter for classes/configs;
  • contextual snippets;
  • contextual singleton getters;
  • complete pack of getters/setters for just everything;
  • full pack of snippets for every helper;
  • full pack of form snippets;
  • full snippets coverage of Unit & Functional tests;
  • symfony CLI GUI with autocompletion.

read more

sfDoctrine

sfDoctrine is in start. It's version 0.9.0 instead of 1.0.0 of sfPHP & sfSymfony, because i'm planning more cool features for it. But it's already usable and has basic features to start work with:

  • contextual table snippets;
  • full DQL support;
  • full schema declarations;
  • short snippets for all column types.

read more

sfPropel

sfPropel is in hard development & will be released little bit after.

Comments:

CpnForTehWin
CpnForTehWin

Thank you !! I use mate and develop on symfony.
I searched something like that, THANK YOU !

Alex Stoneham
Alex Stoneham

What about Yaml editing, Textmate seems to suffer from lack of Yaml editing power, which Symfony developers often find themselves authoring.

ever.zet
ever.zet

2Alex Stoneham:

There's YAML bundle here: http://netcetera.org/cgi-bin/tmbundles.cgi

Leave a comment:

Will be only used for Gravatar & contacts from administration

Name to be displayed in comment

Content of the comment. Simple markdown is allowed