Skip to content

geekgirljoy/PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

PHP

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 Projects

AncestorSimulations


PHP Code Generator & Auto Commit Project.


An example of reading and writing 3D objects using STL file format.

Random STL Example:

Test.php

Image to Mesh Example:

ImageToMesh_CalderaCrater.php

CalderaCrater.png

Class Files:

Vertex.Class.php

Facet.Class.php

STLObject.Class.php

Test STL Files:

cube.stl

RandomlyGenerated.stl

CalderaCrater.stl


An example of reading and writing RIFF Wave Audio file format.

ReadWriteWavs.php

Class File:

JoysWaveReader.class.php

Test Audio Files:

220HzSaw.wav

220HzSine.wav

220HzSquare.wav


Create a displacement map from an image.

CreateDisplacementMap.php

Examples/Results:

Input Image

Displacement Map Output

STL Example

FBX Example

Blender File


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!

ScreenSpaceToPolar.php

PolarColorWheel.png


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

fft.php & complex.class.php


Extract part of an image from another image using a masking image... just... just because... HADOUKEN!

ImageMaskExtract.php

Gradient to Extract From

Mask to Extract

Output


An example of using Text To Speech with PHP using eSpeak on Linux & Mac (option to use say command) or SAPI on Windows.

TTS_MacAndLinux.php

TTS_Windows.php


AppTimer.Class.php

BasicExample.php

AutoStartAndReportExample.php

FunctionCallbackExample.php

ObjectMethodCallbackExample.php

GetTimeExample.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

app.php

menus.php

functions.php


A word to token and string to embedding generator.

GenerateWordTokensVocabulary.php

Class.Tokenizer.php

Example.php

Note: (sourced from /usr/dict/words) words

vocab.json


XOR from scratch... in PHP no less! ¯\㋡/¯

xor.php

xor.net


Loose Code

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.