Examples of my PHP Code
Essentially this repository is an ever growing backup of all my public PHP work. It represents a living body of work and I can, will and do update it frequently.
PHP Code Generator & Auto Commit Project.
An example of reading and writing 3D objects using STL file format.
Random STL Example:
Image to Mesh Example:
Class Files:
Test STL Files:
An example of reading and writing RIFF Wave Audio file format.
Class File:
Test Audio Files:
Diffusion-limited aggregation (DLA) using Brownian motion.
DiffusionLimitedAggrigation.php
Class Files:
Examples:
DiffusionLimitedAggrigation.gif
DiffusionLimitedAggrigation2.gif
DiffusionLimitedAggrigation3.gif
DiffusionLimitedAggrigation4_large.gif
DiffusionLimitedAggrigation5_large.gif
DiffusionLimitedAggrigation_image_large.png
DiffusionLimitedAggrigation_image2_large.png
DiffusionLimitedAggrigation_image_medium.png
Create a displacement map from an image.
Examples/Results:
Ever need to know what direction X & Y are from the center polar coordinate... and then want to draw it for good measure... using PHP?? Have I got some code for you!
A Simple Web Spider built with PHP.
Evolution is an evolution simulation using PHP and is currently a work in progress. It features autoloading classes and random generation.
Magic 8 Ball is a browser based implementation of a "magic 8 ball". This project features autoloading classes and CSS to create a virtual 8 Ball that will soon become your goto oracle with all important questions in your life.
This tool is a demonstration of a "brute force" password breaker. This prototype is provided AS IS and for informational & educational purposes only! Breaker.php
SierpinskiTriangle.php & GIFEncoder.class.php
An example of an FFT writen in PHP
Extract part of an image from another image using a masking image... just... just because... HADOUKEN!
An example of using Text To Speech with PHP using eSpeak on Linux & Mac (option to use say command) or SAPI on Windows.
ObjectMethodCallbackExample.php
How to use the PHP & the GD lib to split RGB "TrueColor" images into seperated RGB monochrome images.
An incomplete Plutchik Emotion Tagger
An example command line menu app using PHP
A word to token and string to embedding generator.
GenerateWordTokensVocabulary.php
Note: (sourced from /usr/dict/words) words
XOR from scratch... in PHP no less! ¯\㋡/¯
This folder contains stand alone code. Each does something different and is here because I want a backup of this code for any number of reasons.
All of this code is subject to minor alterations, complete rewrites, even removal.