2013-01-13, 07:56 PM
(2013-01-13, 07:39 PM)Paul H. Wrote: [ -> ](2013-01-13, 07:37 PM)StingReay Wrote: [ -> ](2013-01-13, 05:55 PM)Paul H. Wrote: [ -> ](2013-01-13, 02:25 PM)FBI Wrote: [ -> ]Well, MyBB 2.0 may not easy to integrate with other scripts (especially for PHP noobs), since they're using 3rd party Yii framework.
On the contrary, MyBB 2.0 will have APIs that will make integrating even easier.
I'm curious now, Paul. How easy would it be to connect MyBB to a standalone (ie not included with the MyBB 2.0 download) instance of Yii and develop a website on top of it?
I'm not sure, I'm not fully acquainted with the MVC architecture. You'd have to ask someone like Nathan or Euan T. Also, it's not set in stone that we're using Yii.
I realise it's not certain that Yii will be used, 'twas merely an example.
(2013-01-13, 07:44 PM)Euan T. Wrote: [ -> ]Also bear in mind that we haven't done much work on 2.0 and a lot can change in the years we're looking at for development.
Saying that, I'm hoping to have a JSON based API that requires access tokens (similar to IPB'S XML-RPC API) that allows requests to preform CRUD operations on Users, Threads, Posts - basically all of the core data types (aka the Models). Seeing as I'm not on the development team, I can't assure this will happen - but it's what I would like to see.
Making a call to said API would be extremely simple from outside apps. Alternatively, it should be possible to autoload the core dependencies into your apps and use them. Say we built 2.0 on Laravel 4. One should be able to simply autoload the required model (g: the User model) and Eloquent then act as if we were using the Laravel core (this is entirely untested and purely hypothetical):
$user = User::with(['posts', 'threads', 'likes'])->where('username', '=', 'SOMUSERNAME')->first(); // $user is now an Eloquent result object with several attributs including a 3 sub members for the Post, Thread and Like Models // We can also delete the user if we want to $user->delete(); // Or updat it: // $user->username = 'Euan T.'; // $user->save();
I'd much prefer Laravel over anything else actually -- those functions are incredibly simple to write code for and very descriptive about what they're for.