Download the PHP package byjg/xmlnuke without Composer
On this page you can find all versions of the php package byjg/xmlnuke. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package xmlnuke
XMLNuke - The King is dead. Long live the King.
Since 2002 I started the development of the XMLNuke project. I created a framework because I would like to put the best practice I've learning in PHP and I wanted to be more productive. In fact I became more productive developing with XMLNuke than use another framework. Over the years, PHP evolved from your version 3.3 with no code standard to the PSR-*, namespaces, object orientation and the powerful composer. XMLNuke survived to all changes and evolved too. The applications I developed using the XMLNuke framework evolved also and the time did not kill neither the framework project neither the applications are using it.
But XMLNuke had challenges bigger than the PHP and the time. XMLNuke was formed of a single large block piece of software. If you want to use a small feature you had to install and setup all XMLNuke software.
Now is time to move to next step. I learned with XMLNuke and I produced some useful routines and code. Now, XMLNuke project was splitted in several small and manageable projects. This process is going on right now. There are dozen of small projects and this number is continuing to increase. XMLNuke is becoming small and is using these projects.
The most important part of this proccess is the small projects have a better code qualitty (Sensiolab Insigths, Scrutinizer CI and Code Climate) and unit tests (Travis-CI).
The legacy software based on XMLNuke will continue to run, but XMLNuke won't be maintained. You can find the list of the new project in the website OpenSource ByJG
Long live the king.
Description
[ The master branch requires PHP53 or higher and is full PSR-0 compliant by using namespaces. The branch 'php50' is the legacy XMLNuke version and is now deprecated. ]
XMLNuke is a Web Development Framework focused on the Data. Programming in XMLNuke you'll never more worry about open and close PHP tags and manage spaghetti code. All of your code is fully based in objects and all code produces only data in XML or JSON, you choose.
This is a page in XMLNuke:
You can easily add some requirements to your page without have to care about how handle this. For example, you can define that your page requires authentication, will be cached or requires to be executed in a SSL context. See the example below:
If you work with models using the classic getter and setter or property you can add it to your page and the XMLNuke will output. For example:
After that you can associate a Snippet XSL to handle this data and produces HTML or whatever you want to produce by the XSL transformation. You can optionally get the raw data in XML or JSON by calling through your web browser:
or
See the Wiki for more examples;
Installing
The master branch requires PHP 5.3 to run. Prior PHP versions can use the legacy 'php50' branch.
Composer: Project level installation
Composer can download XMLNuke and create a empty XMLNuke project at the same time.
To do this you have to create a empty folder and put the following composer.json
file:
and execute the command:
This procedure is valid for existing XMLNuke projects also.
Composer: Global installation using global
You can install XMLNuke globally using composer. To do this execute the command:
Make sure that the folder ~/.composer
can be accessible by your web server.
It is interesting that the folder ~/.composer/vendor/bin
it is the PATH of server:
Composer: Global installation using create-project
Command Line (Debian/Ubuntu)
You have to install your web server (Apache2, Lighttd, nginx, ...). XMLNuke requires for PHP:
apt-get install php5-xsl php5-json
Download the XMLNuke package. You can download from:
- the Zip package (https://github.com/byjg/xmlnuke/archive/master.zip) or
- from repository by using the Git or SVN.
Extract the package in any folder, e.g. /opt/xmlnuke. Remember: The XMLNuke folder cannot to be accessible from you Web Browser.
Run at your terminal:
cd /opt/xmlnuke
./copy-dist-files.sh link yes
Choose and create a folder for your project. This folder must be accessible through your web broswer.
mkdir /var/www/my-project
php /opt/xmlnuke/create-php5-project.php /var/www/my-project myproject en-us pt-br
ln -s /opt/xmlnuke/xmlnuke-common /var/www/my-project/common
Now, just test it:
http://yourserver/my-project
Windows
You have to install your web server (Xampp, Apache2, IIS, ...) and configure it to run PHP5 scripts. Make sure that the XSL extension is installed.
Download the XMLNuke package. You can download from:
- the Zip package (https://github.com/byjg/xmlnuke/archive/master.zip) or
- from repository by using the Git or SVN.
Extract the package in any folder, e.g. D:\data\xmlnuke.
Remember: The XMLNuke folder cannot to be accessible from you Web Browser.
Using the Windows Explorer find your XMLNuke folder and double click in the file "copy-dist-files.vbs". Follow the instructions.
Choose and create a folder for your project (e.g. c:\InetPub\wwwroot\my-project). This folder must be accessible through your web broswer. Using the Windows Explorer find your XMLNuke Folder and double click in the file "create-php5-project.vbs" and follow the instructions.
Now, just test it:
http://yourserver/my-project
Development
The master
branch is the stable release. All development will be done in the develop
branch.
Merge Requests will be accepted in the develop
branch.
Pre-Commit Hook.
You can install a pre-commit hook to execute all unit tests before each commit. Install this hook by using the command:
All versions of xmlnuke with dependencies
ext-json Version *
ext-dom Version *
ext-xml Version *
ext-xsl Version *
ext-session Version *
apache/log4php Version 2.3.0
phpmailer/phpmailer Version 5.2.9
filp/whoops Version 1.1.2
neitanod/forceutf8 Version dev-master
mobiledetect/mobiledetectlib Version 2.8.5
willdurand/negotiation Version 1.3.4
byjg/sparqllib Version dev-master
nikic/fast-route Version dev-master
byjg/imageutil Version ~1.0
byjg/singleton-pattern Version ~1.0
byjg/webrequest Version ~1.0