You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @hamedmoody! You can but I don't suggest that. It's better for you to use composer inside your Wordpress project. For example, you can put all WP files in public folder and in the project root you install composer.
So you will have something like vendor folder and public folder (with WP files). So inside your functions.php (theme file) you include the vendor/autoload.php file and so you can use any composer package inside your WP environment. Just add jgrossi/corcel in composer and call the classes you want ;-)
This is better because you can use other libraries (not only Corcel) inside Wordpress and make your project more secure and with a lot of functionalities you can find as composer package.
You can create a Wordpress plugin that only include vendor/autoload.php file. This will be your plugin ;-)
The main goal of Corcel is to allow you to use a custom framework with Wordpress, using for example, Slim Framework, Silex, Symfony, Zend, Laravel, other framework here, and just get WP data from database.
hi
your package is great.
but can i write a wordpress plugin and use Corcel in my plugin?
Thanks
The text was updated successfully, but these errors were encountered: