PHP 開源AJAX框架14種
Jun 13, 2016 pm 12:21 PM
jQPie
這是一個擴展自jQuery,結合PHP的一個Ajax框架。支持XML,HTML和JSON handler。jQPie提供的功能包括:
利用$.getJSON方法簡化來自PHP的請求和處理數據。
利用$.(element).load方法注入PHP生成的html到某一頁面元素中。
利用$.jqpie方法直接從web頁面調用PHP函數。在響應$.jqpie調用時從PHP函數反過來調用jQuery。
phpmsajax
一組PHP文件用來支持在PHP Web應用程序中使用Microsoft AJAX Library。
jsLINB
jsLINB 是一個完全的瀏覽器端javascrīpt解決方案,兼容大部分現代瀏覽器(IE6.0/IE7.0/firefox1.5 /firefox2.0/opera9/Safari2.0,Safari 缺乏測試)。它可以幫助程序開發(fā)者實現各種類型的RIA應用-在提供更加強大框架的同時更加易用。壓縮的核心代碼僅僅50k, 包括了javascrīpt類型檢查,強制類型,精密且靈活的事件模型,自定義事件,observer和tie/untie, boxing/unBoxing/reBoxing模型,直接調用,dom生成,查詢,遍歷和操作,css 樣式操作,css 類操作,dom屬性操作,javascrīpt完美OO實現,javascrīpt線程,高級Ajax,強大的Drag Drop,超級控件(可在外觀/模板/行為/數據模型四個維度上定制的標準控件,可完全自定義控件)等。
My-BIC
My-BIC是一個易于使用,強大的Ajax/PHP框架。
支持 XML,JSON和TEXT的格式Ajax數據傳輸。支持EasyForms:調用一個函數就能取得Form中的所有值,并為你創(chuàng)建一個少許美化的查詢串。ajaxObj.getForm ('formid')。 JSON客戶端Encoding支持:利用該功能你就能夠在客戶端或服務器之間發(fā)送和接收經過JSON Encoding的數據。網絡斷線保護:當服務器Down掉時My-BIC將幫助你刪除請求并阻止產生更多的調用。內置Submission隊列:所有的AJAX請求將會發(fā)送到正確的順序中,所有請求都會被存儲在隊列中防止被覆蓋。提供一個幫助你在運行期進行調試的可視化操作界面。
aSSL
aSSL:SSL for Ajax。這個開源項目可用于那些需要SSL支持的Ajax應用中。
PHPLiveX
PHPLiveX是一個PHP類庫可用于在web頁面中使用Ajax調用PHP函數。它非常易于使用,在調用一個PHP函數不需要附加額外的功能,包含一個靈活地預加載屬性,兼容IE, Opera, Mozilla, Firefox等瀏覽器。
RSPA
RSPA是一個基于組件事件驅動的ajax框架適用于PHP4與PHP5。使用這個框架可以從客戶端控制事件調用服務器端PHP class函數。也可以在服服務器端直接操作客戶端對象。
phpAjaxTags
phpAjaxTags是模仿著名Java標簽庫"AjaxTags"的一個PHP標記庫。簡單但強大,易于使用與安裝。不需要編寫js代碼就能實現ajax功能。
XAJAX
xajax 通過Javascrīpt直接調用PHP函數。它使用Javascrīpt stub來調用PHP腳本中的函數,對象方法,和類方法。服務器端響應由于xajax響應對象創(chuàng)建,該對象提供非常多的命令比如:給一個HTML元素賦值,顯示一個警告對話框等。還支持自定義腳本輸出。所有特定瀏覽器代碼(如使用XMLHttpRequest)都是抽象的,并且發(fā)送各種數據類型到服務器端都非常容易實現。xajax提供多種配置選項目以便易于與現存web應用或框架相集成。它的Javascrīpt核心簡潔明了,而且可以通過覆蓋來支持更多的高級Javascrīpt功能。
NanoAjax
NanoAjax是一個基于PHP5,面向對象(包括Javascrīpt和PHP)的AJAX框架。它使用JSON作為數據交換格式。NanoAjax能夠把多個虛擬請求歸結到一個正真的請求當中。整個框架非常小,并且易于使用?;赾lass的服務器端事件處理方式。
Pear:HTML_AJAX
Pear:HTML_AJAX是一個相當成熟的Ajax框架, 使用JSON進行數據傳輸。內建豐富的例子,包括留言板、登錄、grab…等等。
Ajax Agent
Ajax Agent是一個非常易于使用(只需三行代碼),并且非常強大的開源框架用于快速構建AJAX或RIA應用程序。支持復雜的數據類型比如: associated arrays與object。使用JSON(Javascrīpt Object Notation)作為數據交換格式。
AjaxAC
AjaxAC是一個PHP框架可用于開發(fā)/創(chuàng)建/生成AJAX應用程序。 特點如下:
1.所有應用程序代碼全都包含在一個單獨的class中(可以附帶任何Javascrīpt包)。
2.PHP文件/HTML頁面的調用非常簡潔。
3.內置簡化處理Javascrīpt事件的功能
4.內置創(chuàng)建和處理subrequest的功能。
5.可以自定義配置值,所以某些元素可以在運行期才被設置。
6.沒有雜亂的Javascrīpt代碼塞滿所調用的Html代碼,所有事件都是被動態(tài)附加上的。
7.易于與模板引擎相集成基于以上兩點原因。
8.易于掛鉤(hook)現有的PHP classe或MySQL數據庫以便從subrequest返回數據。
AJASON
AJASON是一個基于PHP5的AJAX開發(fā)包。它具有以下特點:
1.PHP5與Javascrīpt代碼完全采用面向對象開發(fā)。
2.從Javascrīpt異步調用PHP函數與對象方法。
3.能夠在服務器與客戶端之間交換復雜的數據類型像arrays與object (更確切地說是對象屬性)。
4.使用Javascrīpt回調函數來處理服務端響應。
5.能夠在客戶端處理服務端的AJASON錯誤。

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The method to get the current session ID in PHP is to use the session_id() function, but you must call session_start() to successfully obtain it. 1. Call session_start() to start the session; 2. Use session_id() to read the session ID and output a string similar to abc123def456ghi789; 3. If the return is empty, check whether session_start() is missing, whether the user accesses for the first time, or whether the session is destroyed; 4. The session ID can be used for logging, security verification and cross-request communication, but security needs to be paid attention to. Make sure that the session is correctly enabled and the ID can be obtained successfully.

To extract substrings from PHP strings, you can use the substr() function, which is syntax substr(string$string,int$start,?int$length=null), and if the length is not specified, it will be intercepted to the end; when processing multi-byte characters such as Chinese, you should use the mb_substr() function to avoid garbled code; if you need to intercept the string according to a specific separator, you can use exploit() or combine strpos() and substr() to implement it, such as extracting file name extensions or domain names.

UnittestinginPHPinvolvesverifyingindividualcodeunitslikefunctionsormethodstocatchbugsearlyandensurereliablerefactoring.1)SetupPHPUnitviaComposer,createatestdirectory,andconfigureautoloadandphpunit.xml.2)Writetestcasesfollowingthearrange-act-assertpat

In PHP, the most common method is to split the string into an array using the exploit() function. This function divides the string into multiple parts through the specified delimiter and returns an array. The syntax is exploit(separator, string, limit), where separator is the separator, string is the original string, and limit is an optional parameter to control the maximum number of segments. For example $str="apple,banana,orange";$arr=explode(",",$str); The result is ["apple","bana

JavaScript data types are divided into primitive types and reference types. Primitive types include string, number, boolean, null, undefined, and symbol. The values are immutable and copies are copied when assigning values, so they do not affect each other; reference types such as objects, arrays and functions store memory addresses, and variables pointing to the same object will affect each other. Typeof and instanceof can be used to determine types, but pay attention to the historical issues of typeofnull. Understanding these two types of differences can help write more stable and reliable code.

std::chrono is used in C to process time, including obtaining the current time, measuring execution time, operation time point and duration, and formatting analysis time. 1. Use std::chrono::system_clock::now() to obtain the current time, which can be converted into a readable string, but the system clock may not be monotonous; 2. Use std::chrono::steady_clock to measure the execution time to ensure monotony, and convert it into milliseconds, seconds and other units through duration_cast; 3. Time point (time_point) and duration (duration) can be interoperable, but attention should be paid to unit compatibility and clock epoch (epoch)

In PHP, to pass a session variable to another page, the key is to start the session correctly and use the same $_SESSION key name. 1. Before using session variables for each page, it must be called session_start() and placed in the front of the script; 2. Set session variables such as $_SESSION['username']='JohnDoe' on the first page; 3. After calling session_start() on another page, access the variables through the same key name; 4. Make sure that session_start() is called on each page, avoid outputting content in advance, and check that the session storage path on the server is writable; 5. Use ses

ToaccessenvironmentvariablesinPHP,usegetenv()orthe$_ENVsuperglobal.1.getenv('VAR_NAME')retrievesaspecificvariable.2.$_ENV['VAR_NAME']accessesvariablesifvariables_orderinphp.iniincludes"E".SetvariablesviaCLIwithVAR=valuephpscript.php,inApach
