[HN Gopher] Acorn - Use Laravel Inside WordPress
       ___________________________________________________________________
        
       Acorn - Use Laravel Inside WordPress
        
       Author : rob
       Score  : 39 points
       Date   : 2024-08-25 13:34 UTC (1 days ago)
        
 (HTM) web link (roots.io)
 (TXT) w3m dump (roots.io)
        
       | acomjean wrote:
       | I work on a website for a non-profit. We have a hybrid wordpress
       | symfony site. We're always being pulled two ways, we like that we
       | switched to wordpress for the more static parts of the site
       | (CMS). We have some minor custom functionality thats being
       | handled by symfony, that should righly be a wordpress plug in....
       | 
       | This might be the thing. Especially if you can use it for plug-
       | ins.
        
         | pluc wrote:
         | You'd just be switching one framework for another really.
         | Either make it framework agnostic or make it use the framework
         | you're already using (wordpress)... anything else is
         | unnecessary overhead
        
         | rob wrote:
         | I'm not sure if this helps, but there's also Corcel -- sort of
         | the opposite of Acorn:
         | 
         | https://github.com/corcel/corcel
         | 
         | > Corcel is a collection of PHP classes built on top of
         | Eloquent ORM (from Laravel framework), that provides a fluent
         | interface to connect and get data directly from a WordPress
         | database.
        
       | charlie0 wrote:
       | Frankstein-ing frameworks like this is asking for trouble. This
       | smells like something that was made by devs because they hated
       | working on WP, not understanding that the reason why WP is picked
       | if often due to political reasons, not technical ones.
       | 
       | I predict two forces will turn these kinds of projects into
       | spaghetti: Actual devs working on resolving issues with code,
       | less technical people fighting to use plugins and other add-ons
       | to add functionality.
        
         | rob wrote:
         | > This smells like something that was made by devs because they
         | hated working on WP, not understanding that the reason why WP
         | is picked if often due to political reasons, not technical
         | ones.
         | 
         | Made by the roots.io team, who have been doing this since 2011:
         | 
         | https://roots.io/about/
         | 
         | Other projects in this space include:
         | 
         | https://roots.io/sage/
         | 
         | https://roots.io/bedrock/
         | 
         | Great projects!
        
           | jrgd wrote:
           | I second this; have been using Roots "frameworks" for years
           | now and cant state enough how great this is compared to
           | wordpress-traditional-workflow.
           | 
           | It's great.
        
       | ochrist wrote:
       | Oh no.
       | 
       | Acorn was - and is - the then famous Acorn Computers. Makers of
       | the BBC computer and eventually the inventor of the ARM processor
       | (first used in the Archimedes range of computers).
       | 
       | Please use another name (end of rant).
        
       | askonomm wrote:
       | Unfortunately any PHP devloper worth their money knows that
       | developing WP sites, even if you follow the WP's standard to the
       | T, is a horrible experience riddled with anti patterns. But, to
       | try to remedy that by duct-taping an entirely different framework
       | on top doesn't, to me at least, make things any better. In fact,
       | it makes it worse - now there's two frameworks to maintain.
        
         | abanana wrote:
         | _Especially_ if you follow the WP 's standard to the T.
         | Wordpress coding "standards" came from one person's
         | idiosyncrasies, going against most other coding standards
         | including (especially) the PSR ones. It's a while since I last
         | looked at contributors' attempts to bring some sanity to it
         | all, but the last I saw was that they kept getting knocked back
         | by the gatekeepers.
        
           | stephenr wrote:
           | look you couldn't pay me any amount of money to work on
           | Wordpress, but not cargo culting PSR like a bunch of others
           | isn't the red flag you make it out to be.
           | 
           | I was dubious when they declared that projects indent method
           | is somehow a barrier to "interoperability".
           | 
           | When they made a logging system based on strings because
           | _one_ existing implementation was written by a guy who
           | apparently doesn 't understand syslog levels, I gave up any
           | expectation that they'd produce anything of value.
           | 
           | It's design by committee with the added bullshit of wanting
           | to emulate Java.
        
         | thrownaway561 wrote:
         | Wordpress still didn't have an official style guide or
         | components when I was developing in it which always irked me.
         | Every plugin looked different and most times you would get
         | jQuery conflicts if 2 plugins needed different versions. Also
         | people not using namespaces and just throwing functions within
         | the global namespace was a nightmare to debug. Don't get me
         | wrong, WordPress has always been great at getting something up
         | quick, but if you're going to be creating an app where you need
         | a separate framework, I don't see why you would pickaxe into
         | WordPress itself. Just create a separate app in your favorite
         | framework of choice and use their API to interface with it.
         | Their API is actually really good and easy to work with.
        
       | wizzzzzy wrote:
       | Having used acorn (via roots sage) on a project recently I'd say
       | on balance it does improve working with Wordpress. I wouldn't
       | describe it as a nice experience though.
        
       ___________________________________________________________________
       (page generated 2024-08-26 23:00 UTC)