<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>interfacelab - Latest Comments in Metadata/Attributes in PHP</title><link>http://interfacelab.disqus.com/</link><description></description><atom:link href="https://interfacelab.disqus.com/metadataattributes_in_php/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 02 Aug 2012 11:53:16 -0000</lastBuildDate><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-607509393</link><description>&lt;p&gt;is the attribute reader class still available  looks like a 404&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jacqueline Fisch</dc:creator><pubDate>Thu, 02 Aug 2012 11:53:16 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-234997630</link><description>&lt;p&gt;Thanks for providing the link for the download of classes, appreciate it! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Lew</dc:creator><pubDate>Sat, 25 Jun 2011 22:44:54 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-213325887</link><description>&lt;p&gt;Keep up the good Business to Business posts- great work.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">php developers</dc:creator><pubDate>Sat, 28 May 2011 03:26:01 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-194905903</link><description>&lt;p&gt;It takes the metadata that defines the action and compares to the action of a MySQL database, eventually already installed, and applies the all-important alterations to amend the schema.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dealsbell.com/store/toshiba/" rel="nofollow noopener" target="_blank" title="http://www.dealsbell.com/store/toshiba/"&gt;toshiba direct coupon code&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">peternakah</dc:creator><pubDate>Sat, 30 Apr 2011 17:46:50 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-65463960</link><description>&lt;p&gt;Since I started working with C#, I was feeling the envy when working on PHP projects, too ;-)&lt;/p&gt;&lt;p&gt;I came up with a simple implementation of attributes myself, using a simpler syntax that more closely matches the syntax used in C# - in case you're curious, I posted an example on this forum:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.yiiframework.com/forum/index.php?/topic/10723-source-code-annotations-attributes/page__p__52806&amp;amp;#entry52806" rel="nofollow noopener" target="_blank" title="http://www.yiiframework.com/forum/index.php?/topic/10723-source-code-annotations-attributes/page__p__52806&amp;amp;#entry52806"&gt;http://www.yiiframework.com...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rasmus Schultz</dc:creator><pubDate>Sat, 31 Jul 2010 13:25:48 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-4000877</link><description>&lt;p&gt;Excellent idea...in fact dare I say brilliant? :P&lt;/p&gt;&lt;p&gt;I've been poking around for a while now trying to figure out a way to use reflection that would be "interesting" and "innovative" I think this might be it.&lt;/p&gt;&lt;p&gt;The part where you said, using reflection to obtain meta data and have that information be discoverable rather than declarative...I'm not sure I agree 100% but the idea of marking my methods as REST-able (for lack of a better word) by indicating that in the comment as meta-data...&lt;/p&gt;&lt;p&gt;Damn thats a good idea and I owe it all to this article. :P&lt;/p&gt;&lt;p&gt;Cheers,&lt;br&gt;Alex&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">PCSpectra</dc:creator><pubDate>Tue, 25 Nov 2008 00:39:26 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-1084201</link><description>&lt;p&gt;JSON would be great here as well.  Honestly, the only reason I chose YAML is because all of our other configuration is done with that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jawngee</dc:creator><pubDate>Sun, 03 Aug 2008 02:41:57 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-1084118</link><description>&lt;p&gt;I had an idea that might work out well in replacement for the format. Maybe using a JSON object and parsing it with json_decode. That way it's converted to an associated array on it's own without the need to convert it manually.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin</dc:creator><pubDate>Sun, 03 Aug 2008 02:03:55 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-1075409</link><description>&lt;p&gt;Well, it definitely isn't blazing fast, but I don't believe the overhead is too taxing.  That said, we use APC's shared memory cache to cache metadata so that we only really load it when the application starts up (the cache sticks around until you restart the server or until APC restarts itself).  Using this strategy, once it's cached it's barely noticeable.&lt;/p&gt;&lt;p&gt;You could do the same thing using memcached, but APC's is much faster as the memory is local to its process.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jawngee</dc:creator><pubDate>Fri, 01 Aug 2008 17:06:07 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-1072360</link><description>&lt;p&gt;Thank you so much... You just saved me a ton of time.&lt;/p&gt;&lt;p&gt;Any speed issues using this approach?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin</dc:creator><pubDate>Fri, 01 Aug 2008 12:09:51 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-911855</link><description>&lt;p&gt;Your post was quite wonderful :D , I just translate the technique, give your example.&lt;/p&gt;&lt;p&gt;Thanks for your nice post :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">quocbao</dc:creator><pubDate>Wed, 16 Jul 2008 13:24:06 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-720709</link><description>&lt;p&gt;Nice one.&lt;/p&gt;&lt;p&gt;Yeah, it's unfortunate that this is really a huge hack to get a language feature that would be a nice to have.&lt;/p&gt;&lt;p&gt;I'm going to be re-posting a patch for PHP that enables array shortcut notation in the next couple of days.  The patch was originally by  Ryusuke Sekiyama, posted here:  &lt;a href="http://marc.info/?l=php-internals&amp;amp;m=119995972028293&amp;amp;w=2" rel="nofollow noopener" target="_blank" title="http://marc.info/?l=php-internals&amp;amp;m=119995972028293&amp;amp;w=2"&gt;http://marc.info/?l=php-int...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Instead of using array() you can use [], eg:&lt;/p&gt;&lt;p&gt;$var=[1,2,3,4];&lt;br&gt;$othervar=[ 'test' =&amp;gt; [1,2], 'sick' =&amp;gt; [1,[3,4]]];&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jgmassify</dc:creator><pubDate>Sat, 21 Jun 2008 02:44:19 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-708646</link><description>&lt;p&gt;I use annotations with a array style notation like:&lt;/p&gt;&lt;p&gt;/**&lt;br&gt; * @someAnno(1=&amp;gt;2, "yeah"=&amp;gt; array("no","yes"))&lt;br&gt; */&lt;/p&gt;&lt;p&gt;It's really too bad that the language itself doesn't support it (outside doc comments) as it would be much faster and not require the caching.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">david</dc:creator><pubDate>Thu, 19 Jun 2008 14:10:20 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-698362</link><description>&lt;p&gt;That's VERY interesting&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Carr</dc:creator><pubDate>Wed, 18 Jun 2008 08:48:08 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-689032</link><description>&lt;p&gt;I'm the CTO for &lt;a href="http://massify.com" rel="nofollow noopener" target="_blank" title="massify.com"&gt;massify.com&lt;/a&gt;.  When I signed on the site was being written in PHP.  Unfortunately, it was a hideous wreck so we had to rewrite it, but thought we could use some of the code that had already been written.  That wasn't the case however.&lt;/p&gt;&lt;p&gt;Honestly, I don't mind it, there are some benefits to it, but I do miss C# and am sort of kicking myself for not having done the rewrite in Python.&lt;/p&gt;&lt;p&gt;C'est la vie.  :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">iflyhigh</dc:creator><pubDate>Tue, 17 Jun 2008 00:34:46 -0000</pubDate></item><item><title>Re: Metadata/Attributes in PHP</title><link>http://interfacelab.com/metadataattributes-in-php/#comment-685936</link><description>&lt;p&gt;That's an interesting technique.&lt;/p&gt;&lt;p&gt;What I'm more interested in is why you left c#.  I'm in the same boat.  At work I do c# and it's pretty damned nice.  I also maintain a boatload of wordpress blogs so I have to learn PHP.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Mon, 16 Jun 2008 15:30:23 -0000</pubDate></item></channel></rss>