Friday, July 10, 2015

Re: Which parts of the framework can be used outside the framework?

David,

First, checkout the various GitHub repos besides the framework, the app skeleton and the usual suspects such as DebugKit:
https://github.com/cakephp/

Let's take Event for example:
https://github.com/cakephp/event

There is not only a README as you found out, but more importantly a composer.json:
https://github.com/cakephp/event/blob/3.0.8/composer.json

As you can see this one does not have any other dependencies (neither CakePHP nor external ones).

So let's checkout the packages of CakePHP on Packagist:
https://packagist.org/packages/cakephp/

There it is again, the Event package:
https://packagist.org/packages/cakephp/event

Then go and create a project locally and create a composer.json, e.g. like this:

{
   
"name": "ravage84/cakephp-event-test",
   
"type": "project",
   
"require": {
       
"cakephp/event": "^3.0"
   
},
   
"license": "MIT",
   
"authors": [
       
{
           
"name": "Marc Würth",
           
"email": "ravage@bluewin.ch"
       
}
   
]
}

Then execute
composer install
and you should be able to use the Event library in your new project. ;-)

Certainly this is only one example and you do not need to use Composer necessarily.

Hope this clears it up.

Greetings from Switzerland
Marc

Am Mittwoch, 8. Juli 2015 23:12:29 UTC+2 schrieb David Yell:
I've noticed that stuff like the Event library have their own readme's does that mean that the library can be used outside the framework, like a component?

I'm making a presentation and I would like a list of all the parts of the framework which can be used outside the framework as a bonus point for Cake.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: