+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sample PHP Code to Create News and Events

Sample PHP Code to Create News and Events

3 posts, 0 answered
  1. David
    David avatar
    9 posts
    Registered:
    05 Jun 2013
    25 Jun 2013
    Link to this post
    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.

    https://github.com/dconroy/PHPSifefinityWebServices/
  2. David
    David avatar
    9 posts
    Registered:
    05 Jun 2013
    25 Jun 2013
    Link to this post
    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.
  3. Kiran
    Kiran avatar
    1 posts
    Registered:
    10 Dec 2013
    10 Dec 2013
    Link to this post
    Hi David,
    Thank you very much for this :)
3 posts, 0 answered