Sample PHP Code to Create News and Events

Posted by Community Admin on 04-Aug-2018 20:53

Sample PHP Code to Create News and Events

All Replies

Posted by Community Admin on 25-Jun-2013 00:00

I'm new to Sitefinity and .NET Development, but have been doing web development with PHP as a hobby for a few years. I know the Sitefinity SDK and Documentation are very thorough, but I was unable to follow many of the examples as I don't have a .NET development environment and am not very familiar with C#.

I assume I am not the only PHP Developer out there who would like to programatically work with Sitefinity.

So, I've created some sample code using PHP/cURL/WCF for the community that shows how to:
Login with credentials
Create a News Item
Create a Event Item
Print all News Items
Print all Event Items
..all in PHP

I've added the code to github and have linked it below. If you find a
problem, incorrect comment, obsolete or improper code or such, please me
know on github or by replying to this thread.

github.com/.../

Posted by Community Admin on 25-Jun-2013 00:00

I've actually taken this sample code a step further, and used it to import about 2000 news stories, and 500 calendar events from my company's old website to its new SiteFinity site using WCF and PHP/MySQL.

Posted by Community Admin on 10-Dec-2013 00:00

Hi David,
Thank you very much for this :)

This thread is closed