SartajPHP ( PHP Framework )


SartajPHP Framework

Why SartajPHP Framework for PHP

SartajPHP PHP Framework is very fast and flexible PHP Framework. It uses event driven mechanism on client server architecture. We can easily fire an event on server with hyperlink or ajax request.


  <a href="index-detail-2.html">call detail event and pass value 2</a> 

Join Discussion


https://gitter.im/sartajphp/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link


Visual Studio Code Extension

NodeJS Native App Development

Download Framework From Github

Download Desktop Development

      With Composer:----

Add to your composer.json:

    {

        "require": {

            "sartajphp/sartajphp": "dev-master"

        }

    }

Then composer install OR composer update

Here are some features of SartajPHP PHP Framework:-

  • Easily Designing Front-End With any HTML Editor
  • Javascript,php,mysql,ajax inbuilt components
  • Fast Development
  • Highly Professional Components for development
  • SEO Friendly links and secure links
  • Highly Traffic Handling application
  • inbuilt 2 level cache system
  • Event driven application structure
  • One Gateway for controls whole application less application flaw
  • Inbuilt jquery support and ready components
  • Visual Components is visible in html Visual editor and easily editable

Application :-

An Application in SartajPHP PHP is a php file where you can write your programming logic and control application html output to browser. Its is center point of SartajPHP PHP. You can create a web application with many applications. Application should be register in registery file otherwise your can not run it. Every application has unique Controller. The Controller is used to create hyperlink or url. You can set Authorisation of application. Every application use $page object of page class. Page Class is parent Class of every application. You can design application in any style like OOP or simple PHP module. SartajPHP PHP Framework provide free style mechanism.

Example BasicApp type Application:-

    <?php   
      class index extends \Sphp\tools\BasicApp{ 
        public function onstart(){ 
            print "app start<br />";   
        }   
        public function page_new(){   
            print "new event<br />";  
        }   
      } 
  
  

Global Settings :-

Every Web application has its own global settings which can be access in any where in project. You can set here Database,mail settings.

Temp File :-

Temp file is file where we can use SartajPHP PHP Framework components. SartajPHP PHP Frameowrk has also a component oriented mechanism and it is very powerfull concept to develop a professional web application. If you manage your web content in best way then you can develop a good application. You can create your own component and use it in Temp File.

Example of Temp File


    <alert id="msgerr" runat="server" ></alert>  
        <div class="heading">Login Form</div>  
        <form id='form2' runat="server" action="##{ getAppPath('login')}#"> 
        <table align="center">  <tr><td> 
        User ID  </td><td>  <input name="txtuserID" type="text" class="inputpass" runat="server"  
        funsetForm="form2" funsetMinLen="4" funsetRequired=""   funsetMsgName="User ID"> 
        </td></tr>  <tr><td> 
        Password  </td><td>  <input name="txtpass" type="password" class="inputpass"  
        runat="server" funsetForm="form2" funsetMinLen="4" funsetRequired=""  
        funsetMsgName="Password">  </td></tr>  <tr><td>  
        </td><td>    
        <input type="submit" value="Login">
        </td></tr>  </table>  
        </form> 
 
   
  

SartajPHP API Links

SartajPHP v4.7.x API Latest
SartajPHP v4.4.x API
SartajPHP v4.3.x API