repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Memento/Editor.php
Behavioral/Memento/Editor.php
<?php // Originator class class Editor { private string $content; public function __construct() { $this->content = ''; } public function type(string $words): void { $this->content .= ' ' . $words; } public function getContent(): string { return $this->cont...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Memento/Caretaker.php
Behavioral/Memento/Caretaker.php
<?php // Caretaker class class EditorHistory { private array $mementos = []; public function addMemento(EditorMemento $memento): void { $this->mementos[] = $memento; } public function getMemento(int $index): EditorMemento { return $this->mementos[$index]; } }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Memento/Call.php
Behavioral/Memento/Call.php
<?php // Usage example $editor = new Editor(); $editor->type('This is the first sentence.'); $editor->type('This is the second sentence.'); // Save the current state $history = new EditorHistory(); $history->addMemento($editor->save()); // Add more content $editor->type('This is the third sentence.'); // Restore to...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Memento/EditorMemento.php
Behavioral/Memento/EditorMemento.php
<?php // Memento class class EditorMemento { private string $content; public function __construct(string $content) { $this->content = $content; } public function getContent(): string { return $this->content; } }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Visitor/Shape.php
Behavioral/Visitor/Shape.php
<?php // Define the Shape interface interface Shape { public function accept(ShapeVisitorInterface $visitor); }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Visitor/ShapeVisitorInterface.php
Behavioral/Visitor/ShapeVisitorInterface.php
<?php // Define the ShapeVisitor interface interface ShapeVisitorInterface { public function visitCircle(Circle $circle); public function visitSquare(Square $square); public function visitRectangle(Rectangle $rectangle); }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Visitor/Call.php
Behavioral/Visitor/Call.php
<?php // Example usage $shapes = [ new Circle(5), new Square(4), new Rectangle(3, 6), ]; // Create a new instance of the ShapeVisitor class $visitor = new ShapeVisitor(); // Loop through each shape and call its accept() method, passing in the visitor object foreach ($shapes as $shape) { $shape->accep...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Visitor/ShapeVisitor.php
Behavioral/Visitor/ShapeVisitor.php
<?php // Define the ShapeVisitor class class ShapeVisitor implements ShapeVisitorInterface { private $area; private $perimeter; public function visitCircle(Circle $circle) { $this->area = pi() * $circle->getRadius() * $circle->getRadius(); $this->perimeter = 2 * pi() * $circle->getRadi...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Visitor/Shapes.php
Behavioral/Visitor/Shapes.php
<?php // Define the Circle class class Circle implements Shape { private $radius; public function __construct($radius) { $this->radius = $radius; } public function accept(ShapeVisitorInterface $visitor) { $visitor->visitCircle($this); } public function getRadius() ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/State/States.php
Behavioral/State/States.php
<?php /** * The UpperCase class represents a writing state where all text is converted to uppercase. */ class UpperCase implements WritingStateInterface { public function write(string $words) { echo strtoupper($words) . "\n"; } } /** * The LowerCase class represents a writing state where all te...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/State/WritingStateInterface.php
Behavioral/State/WritingStateInterface.php
<?php /** * The WritingStateInterface defines the interface for all writing states. */ interface WritingStateInterface { public function write(string $words); }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/State/TextEditor.php
Behavioral/State/TextEditor.php
<?php /** * The TextEditor class maintains a reference to a writing state and allows changing it at runtime. */ class TextEditor { private WritingStateInterface $state; public function __construct() { $this->state = new DefaultText(); } public function setState(WritingStateInterface $st...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/State/Call.php
Behavioral/State/Call.php
<?php // Example usage $editor = new TextEditor(); $editor->type("First line"); $editor->setState(new UpperCase()); $editor->type("Second Line"); $editor->type("Third Line"); $editor->setState(new LowerCase()); $editor->type("Fourth Line"); $editor->type("Fifth Line"); // Output: // First line // SECOND LINE // ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Observer/NewsPublisher.php
Behavioral/Observer/NewsPublisher.php
<?php class NewsPublisher implements SplSubject { private SplObjectStorage $observers; private array $articles; public function __construct() { $this->observers = new SplObjectStorage(); $this->articles = array(); } public function attach(SplObserver $observer) { $...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Observer/Call.php
Behavioral/Observer/Call.php
<?php // Create the news publisher and attach subscribers $publisher = new NewsPublisher(); $subscriber1 = new NewsSubscriber('Saleh'); $subscriber2 = new NewsSubscriber('Mina'); $publisher->attach($subscriber1); $publisher->attach($subscriber2); // Publish new articles $publisher->publishArticle('New article 1', 'C...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Observer/NewsSubscriber.php
Behavioral/Observer/NewsSubscriber.php
<?php // Define the observer interface class NewsSubscriber implements SplObserver { private string $name; public function __construct(string $name) { $this->name = $name; } public function update(SplSubject $subject) { $articles = $subject->getArticles(); echo "Hello ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/TemplateMethod/EmailSender.php
Behavioral/TemplateMethod/EmailSender.php
<?php abstract class EmailSender { protected string $recipient; public function __construct(string $recipient) { $this->recipient = $recipient; } public function sendEmail(): void { $subject = $this->getSubject(); $body = $this->getBody(); // Code to send emai...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/TemplateMethod/Subclasses.php
Behavioral/TemplateMethod/Subclasses.php
<?php class WelcomeEmailSender extends EmailSender { protected function getSubject(): string { return 'Welcome to our site!'; } protected function getBody(): string { return 'Thank you for joining our site!'; } } class UpdateEmailSender extends EmailSender { protected func...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/TemplateMethod/Call.php
Behavioral/TemplateMethod/Call.php
<?php $welcomeEmailSender = new WelcomeEmailSender('salpars2004@gmail.com'); $welcomeEmailSender->sendEmail(); $updateEmailSender = new UpdateEmailSender('salpars2004@yahoo.com'); $updateEmailSender->sendEmail();
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Mediator/User.php
Behavioral/Mediator/User.php
<?php class User { private string $name; private $groupChats = []; public function __construct(string $name) { $this->name = $name; } public function joinGroupChat(GroupChat $groupChat, GroupChatMediatorInterface $mediator): void { // Add user to the group chat via the med...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Mediator/Mediator.php
Behavioral/Mediator/Mediator.php
<?php class GroupChatMediator implements GroupChatMediatorInterface { public function addUserToGroupChat(User $user, GroupChat $groupChat) { // Add user to the group chat $groupChat->addUser($user); } public function sendMessageToGroupChat(User $user, GroupChat $groupChat, $message) ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Mediator/GroupChatMediatorInterface.php
Behavioral/Mediator/GroupChatMediatorInterface.php
<?php interface GroupChatMediatorInterface { public function addUserToGroupChat(User $user, GroupChat $groupChat); public function sendMessageToGroupChat(User $user, GroupChat $groupChat, $message); }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Mediator/Call.php
Behavioral/Mediator/Call.php
<?php // Create a new mediator $mediator = new GroupChatMediator(); // Create some group chats $groupChat1 = new GroupChat("Group Chat 1"); $groupChat2 = new GroupChat("Group Chat 2"); // Create some users $user1 = new User("Saleh"); $user2 = new User("Mina"); $user3 = new User("Ahmad"); // Add users to group chats...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Mediator/GroupChat.php
Behavioral/Mediator/GroupChat.php
<?php class GroupChat { private string $name; private array $users = []; public function __construct($name) { $this->name = $name; } public function addUser(User $user): void { // Add user to the group chat $this->users[] = $user; } public function sendMes...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Command/Invoker.php
Behavioral/Command/Invoker.php
<?php // Invoker class that manages the commands class Invoker { private array $commands = []; private array $undoStack = []; public function addCommand(Command $command): void { $this->commands[] = $command; } public function executeCommands(): void { foreach ($this->comm...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Command/Command.php
Behavioral/Command/Command.php
<?php // Command interface interface Command { public function execute(); public function undo(); }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Command/Commands.php
Behavioral/Command/Commands.php
<?php // Concrete command class for adding numbers class AddCommand implements Command { private Receiver $receiver; private int $value; public function __construct(Receiver $receiver, int $value) { $this->receiver = $receiver; $this->value = $value; } public function execute(...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Command/Call.php
Behavioral/Command/Call.php
<?php // Client code $receiver = new Receiver(); $invoker = new Invoker(); $invoker->addCommand(new AddCommand($receiver, 5)); $invoker->addCommand(new SubtractCommand($receiver, 3)); $invoker->executeCommands(); echo "Current value: " . $receiver->getValue() . "\n"; // Output: Current value: 2 $invoker->undo(); ec...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Behavioral/Command/Receiver.php
Behavioral/Command/Receiver.php
<?php // Receiver class that performs the operations class Receiver { private int $value = 0; public function add($value): void { $this->value += $value; } public function subtract($value): void { $this->value -= $value; } public function getValue(): int { ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Flyweight/CharacterClient.php
Structural/Flyweight/CharacterClient.php
<?php /** * The Client represents a character in the game. */ class CharacterClient { private string $name; private $sharedCharacter; public function __construct(string $name, CharacterFactory $factory, $height, $weight, $hairColor) { $this->name = $name; $this->sharedCharacter = $fa...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Flyweight/Flyweight.php
Structural/Flyweight/Flyweight.php
<?php /** * The Flyweight interface declares a method for accepting extrinsic state. */ interface Character { public function render(string $name): void; }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Flyweight/Call.php
Structural/Flyweight/Call.php
<?php // Client code $factory = new CharacterFactory(); $player1 = new CharacterClient('Player 1', $factory, 180, 75, 'blonde'); $player1->render(); // Drawing character 'Player 1' with height '180', weight '75', and hair color 'blonde' $player2 = new CharacterClient('Player 2', $factory, 180, 75, 'blonde'); $player...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Flyweight/Flyweights.php
Structural/Flyweight/Flyweights.php
<?php /** * The Concrete Flyweight provides an implementation of the Flyweight interface. * It stores intrinsic state, which is shared across multiple objects. */ class SharedCharacter implements Character { private $height; private $weight; private $hairColor; public function __construct($height, ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Flyweight/Factory.php
Structural/Flyweight/Factory.php
<?php /** * The Flyweight Factory manages a pool of shared flyweight objects. It * ensures that flyweights are shared correctly. When the client requests a * flyweight, the factory either returns an existing instance or creates a new * one, if it doesn't exist yet. */ class CharacterFactory { private array $c...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Decorator/Decorators.php
Structural/Decorator/Decorators.php
<?php /** * Concrete Decorators */ class SMSNotificationDecorator extends NotificationDecorator { public function send(): string { return "Sending an SMS notification. " . parent::send(); } } class EmailNotificationDecorator extends NotificationDecorator { public function send(): string ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Decorator/Notification.php
Structural/Decorator/Notification.php
<?php /** * The base Notification interface */ interface Notification { public function send(): string; }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Decorator/ConcreteNotification.php
Structural/Decorator/ConcreteNotification.php
<?php /** * Concrete Notifications */ class ConcreteNotification implements Notification { public function send(): string { return "Sending a concrete notification"; } }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Decorator/NotificationDecorator.php
Structural/Decorator/NotificationDecorator.php
<?php /** * The base Decorator class */ class NotificationDecorator implements Notification { /** * @var Notification */ protected Notification $notification; public function __construct(Notification $notification) { $this->notification = $notification; } /** * @retur...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Decorator/Call.php
Structural/Decorator/Call.php
<?php function clientCode(Notification $notification): void { echo $notification->send(); } /** * This way the client code can support both simple notifications... */ $simple = new ConcreteNotification(); echo "Client: I've got a simple notification:\n"; clientCode($simple); echo "\n\n"; /** * ...as well as d...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Facade/OrderFacade.php
Structural/Facade/OrderFacade.php
<?php // Define the facade class OrderFacade { protected OrderVerification $verification; protected PaymentProcessor $payment; protected OrderFulfillment $fulfillment; public function __construct() { $this->verification = new OrderVerification(); $this->payment = new PaymentProcess...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Facade/Subsystems.php
Structural/Facade/Subsystems.php
<?php // Define the subsystems class OrderVerification { public function verifyOrder(int $orderId): bool { // Code to verify the order return true; } } class PaymentProcessor { public function processPayment(float $amount): bool { // Code to process the payment retu...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Facade/Call.php
Structural/Facade/Call.php
<?php // Client code $facade = new OrderFacade(); $orderId = 12345; $amount = 99.99; if ($facade->placeOrder($orderId, $amount)) { echo "Order placed successfully.\n"; } else { echo "Failed to place order.\n"; }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/DataMapper/User.php
Structural/DataMapper/User.php
<?php class User { private int $id; private string $name; private string $email; public function __construct(int $id, string $name, string $email) { $this->id = $id; $this->name = $name; $this->email = $email; } public function getId(): int { return $th...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/DataMapper/Call.php
Structural/DataMapper/Call.php
<?php $db = new PDO('mysql:host=localhost;dbname=mydb', 'username', 'password'); $userMapper = new UserMapper($db); $user = $userMapper->getById(1); echo $user->getName(); // Outputs the user's name $newUser = new User(null, 'John Doe', 'john@example.com'); $userMapper->save($newUser); echo $newUser->getId(); // Out...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/DataMapper/UserMapper.php
Structural/DataMapper/UserMapper.php
<?php class UserMapper { private PDO $db; public function __construct($db) { $this->db = $db; } public function getById($id): ?User { $stmt = $this->db->prepare('SELECT * FROM users WHERE id = :id'); $stmt->bindParam(':id', $id); $stmt->execute(); $resu...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Composite/Leaf.php
Structural/Composite/Leaf.php
<?php // Leaf classes class Book implements Product { private string $name; private float $price; public function __construct(string $name, float $price) { $this->name = $name; $this->price = $price; } public function getName(): string { return $this->name; } ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Composite/Composite.php
Structural/Composite/Composite.php
<?php // Composite class class ProductCatalog implements Product { private array $products = []; public function addProduct(Product $product) { $this->products[] = $product; } public function getName(): string { return "Product Catalog"; } public function getPrice(): ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Composite/Product.php
Structural/Composite/Product.php
چ<?php // Component interface interface Product { public function getName(): string; public function getPrice(): float; }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Composite/Call.php
Structural/Composite/Call.php
<?php // Usage example $book = new Book("The Hitchhiker's Guide to the Galaxy", 10.99); $gadget = new Gadget("Wireless Headphones", 79.99); $movie = new Movie("Inception", 7.99); $song = new Song("Bohemian Rhapsody", 0.99); $catalog = new ProductCatalog(); $catalog->addProduct($book); $catalog->addProduct($gadget); $...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Bridge/Theme.php
Structural/Bridge/Theme.php
<?php interface Theme { public function getBackgroundColor(): string; public function getTextColor(): string; }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Bridge/Themes.php
Structural/Bridge/Themes.php
<?php class LightTheme implements Theme { public function getBackgroundColor(): string { return "#FFFFFF"; } public function getTextColor(): string { return "#000000"; } } class DarkTheme implements Theme { public function getBackgroundColor(): string { return ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Bridge/Call.php
Structural/Bridge/Call.php
<?php // Usage example $lightTheme = new LightTheme(); $darkTheme = new DarkTheme(); $homePage = new HomePage($lightTheme); echo $homePage->getContent() . "<br>"; $homePage->setTheme($darkTheme); echo $homePage->getContent() . "<br>"; $aboutPage = new AboutPage($darkTheme); echo $aboutPage->getContent() . "<br>";
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Bridge/AbstractWebPage.php
Structural/Bridge/AbstractWebPage.php
<?php abstract class AbstractWebPage implements WebPage { protected Theme $theme; public function __construct(Theme $theme) { $this->theme = $theme; } public function setTheme(Theme $theme) { $this->theme = $theme; } public function getBackgroundColor(): string { ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Bridge/WebPage.php
Structural/Bridge/WebPage.php
<?php interface WebPage { public function getContent(): string; }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Bridge/AbstractWebPages.php
Structural/Bridge/AbstractWebPages.php
<?php class HomePage extends AbstractWebPage { public function getContent(): string { return "<div style='background-color: {$this->getBackgroundColor()}; color: {$this->getTextColor()};'>Welcome to our website!</div>"; } } class AboutPage extends AbstractWebPage { public function getContent()...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Adapter/PaymentProcessor.php
Structural/Adapter/PaymentProcessor.php
<?php // Payment Processing System class PaymentProcessor { private Payment $payment; public function __construct(Payment $payment) { $this->payment = $payment; } public function process($amount): void { $this->payment->processPayment($amount); } }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Adapter/PaymentGateway.php
Structural/Adapter/PaymentGateway.php
<?php // Third-Party Payment Gateway API class PaymentGateway { public function makePayment($amount): void { // code to make payment through the third-party payment gateway API echo "Payment of $amount processed using the third-party payment gateway API\n"; } }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Adapter/PaymentGatewayAdapter.php
Structural/Adapter/PaymentGatewayAdapter.php
<?php // Adapter Class class PaymentGatewayAdapter implements Payment { private PaymentGateway $paymentGateway; public function __construct(PaymentGateway $paymentGateway) { $this->paymentGateway = $paymentGateway; } public function processPayment($amount) { $this->paymentGateway->mak...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Adapter/Call.php
Structural/Adapter/Call.php
<?php // Client Code $paymentGateway = new PaymentGateway(); $paymentAdapter = new PaymentGatewayAdapter($paymentGateway); $paymentProcessor = new PaymentProcessor($paymentAdapter); $paymentProcessor->process(100); // Payment of 100 processed using the third-party payment gateway API
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Adapter/Payment.php
Structural/Adapter/Payment.php
<?php // Payment Interface interface Payment { public function processPayment($amount); }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Proxy/WeatherServiceProxy.php
Structural/Proxy/WeatherServiceProxy.php
<?php class WeatherServiceProxy implements Subject { private WeatherService $weatherService; private array $cache; public function __construct(string $apiKey, string $baseUrl) { $this->weatherService = new WeatherService($apiKey, $baseUrl); $this->cache = []; } public function...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Proxy/Subject.php
Structural/Proxy/Subject.php
<?php interface Subject { public function request(): void; }
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Proxy/WeatherService.php
Structural/Proxy/WeatherService.php
<?php class WeatherService implements Subject { private string $apiKey; private string $baseUrl; public function __construct(string $apiKey, string $baseUrl) { $this->apiKey = $apiKey; $this->baseUrl = $baseUrl; } public function request(): void { // Make an HTTP r...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
salehhashemi1992/design-patterns-persian
https://github.com/salehhashemi1992/design-patterns-persian/blob/0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c/Structural/Proxy/Call.php
Structural/Proxy/Call.php
<?php echo "Client: Executing the client code with a real weather service:\n"; $weatherService = new WeatherService('your_api_key', 'https://api.weather.com'); clientCode($weatherService); echo "\n"; echo "Client: Executing the same client code with a weather service proxy:\n"; $weatherServiceProxy = new WeatherServ...
php
MIT
0d0004cbaaf5fccb0ae55044f607f38ad7a48b4c
2026-01-05T04:20:40.356616Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/index.php
index.php
<?php /* *--------------------------------------------------------------- * PHP ERROR REPORTING LEVEL *--------------------------------------------------------------- * * By default CI runs with error reporting set to ALL. For security * reasons you are encouraged to change this to 0 when your site goes live. ...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/html_helper.php
system/helpers/html_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/url_helper.php
system/helpers/url_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/captcha_helper.php
system/helpers/captcha_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/form_helper.php
system/helpers/form_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/inflector_helper.php
system/helpers/inflector_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/string_helper.php
system/helpers/string_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/security_helper.php
system/helpers/security_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/array_helper.php
system/helpers/array_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/download_helper.php
system/helpers/download_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/text_helper.php
system/helpers/text_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/email_helper.php
system/helpers/email_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/path_helper.php
system/helpers/path_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/typography_helper.php
system/helpers/typography_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/language_helper.php
system/helpers/language_helper.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codeign...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/smiley_helper.php
system/helpers/smiley_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/xml_helper.php
system/helpers/xml_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/date_helper.php
system/helpers/date_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/cookie_helper.php
system/helpers/cookie_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/file_helper.php
system/helpers/file_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/number_helper.php
system/helpers/number_helper.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codeign...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/helpers/directory_helper.php
system/helpers/directory_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Xmlrpc.php
system/libraries/Xmlrpc.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
true
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Form_validation.php
system/libraries/Form_validation.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Encrypt.php
system/libraries/Encrypt.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Pagination.php
system/libraries/Pagination.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Ftp.php
system/libraries/Ftp.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Table.php
system/libraries/Table.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Sha1.php
system/libraries/Sha1.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Calendar.php
system/libraries/Calendar.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Email.php
system/libraries/Email.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
true
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Upload.php
system/libraries/Upload.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Log.php
system/libraries/Log.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Trackback.php
system/libraries/Trackback.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Xmlrpcs.php
system/libraries/Xmlrpcs.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false
ollieza/FormIgniter
https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/system/libraries/Security.php
system/libraries/Security.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
php
MIT
16e781560aa5b07e41a55dafeaf07ce7a69e4a8c
2026-01-05T04:20:58.117652Z
false