Sample PHP Code to Create News and Events
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/.../
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.
Hi David,
Thank you very much for this :)