Php file manager github

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

PHP Utility Class to Manage Files and Operations

oromedialab/php-file-manager

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Developed and Maintained by Ibrahim Azhar Armar

PHP Utility Class to Manage Files and Operations

composer require oromedialab/php-file-manager dev-master 
git clone https://github.com/oromedialab/php-file-manager.git 

This library performs write operations for CPA-005 files

Canadian Payments Association (CPA) layout is used by Canadian Banks when exchanging electronic CAD or USD payment details with other Canadian Banks. It is recommended for clients who have mainframe systems and only intend processing payments within Canada.

CPA format cannot be used for electronic payments destined to the United States.

  • Each first and last logical record of any file must be logical record types «A» and «Z» respectively. All other logical records contain transaction information.
  • Logical file must consist of logical records in sequence of: A, D, Z.
  • Multiple logical files up to a maximum of 1000 can be submitted on a physical transmission.
  • The maximum length for a savings or chequing account number drawn on a Canadian financial institution is 12 digits. This 12 digit restriction is set by the Canadian Payments Association (CPA).
  • Maximum of 6 segments are allowed per logical record type with segmentable interface
  • File name must not exceed 27 characters (no spaces or special symbols are allowed)
  • Credit and debit transactions cannot be commingled in a single file.
  • Transaction value dates cannot extend beyond seven calendar days in the past or 60 calendar days in the future from the import date.
  • The total number of transactions within the file, total dollar amount of the transactions in the file, and the total number of lines in the file will be validated against the values entered in the trailer record. If the figures do not match up, the file will be rejected.
// Use statement use Oml\PHPFileManager\Document\CPA005\LogicalRecord; use Oml\PHPFileManager\Document\CPA005\Segment; use Oml\PHPFileManager\Document\CPA005\Writer; use Oml\PHPFileManager\Document\CPA005\File; use Oml\PHPFileManager\Document\CPA005\Utility\TransactionType; // Intialize file writer $file = new File\DAT(); $file->setFileName('1111'); // Intialize logical record type "A" $typeA = new LogicalRecord\TypeA; $typeA->setLogicalRecordCount(1); $typeA->setOriginatorAccountNumber('1111111111'); $typeA->setFileCreationNumber('1111'); $typeA->setFileCreationDate(new \DateTime('now')); $typeA->setFileProcessingCentre('11111'); // Add logical record type to file for writing $file->addLogicalRecord($typeA, 'A'); // Intialize logical record type "C" $typeC = new LogicalRecord\TypeC; $typeC->setLogicalRecordCount(2); $typeC->setOriginatorAccountNumber('1111111111'); $typeC->setFileCreationNumber('1111'); // Add segments to logical record type "C" (Maximum of 6 segments can be added to each of segmentable logical record) $segment = new Segment\TypeC; $segment->setTransactionType(TransactionType::ACCOUNTS_PAYABLE); $segment->setAmount('111.11'); $segment->setPaymentDate(new \DateTime('now')); $segment->setInstitutionCode('111'); $segment->setTransitNumber('11111'); $segment->setBankAccountNumber('1111111'); $segment->setOriginatorShortName('XXXX.YYY'); $segment->setCustomerName('XXXXXXXX XXXX'); $segment->setOriginatorLongName('XXXXXXXXXXXX.YYYY'); $segment->setOriginatorDirectClearerUserId('1111111111'); $segment->setOriginatorCrossReferenceNumber('XXXXXXX XXX'); $segment->setReturnInstitutionCode('111'); $segment->setReturnBranchTransitNumber('11111'); $segment->setReturnBranchAccountNumber('111111'); // Add first segment to logical record type C $typeC->addSegment($segment); // Add logical record type to file for writing $file->addLogicalRecord($typeC); // Intialize logical record type "Z" (Pass "C" for Credit and "D" for Debit in the constructor) $typeZ = new LogicalRecord\TypeZ('C'); $typeZ->setLogicalRecordCount(3); $typeZ->setOriginatorAccountNumber('1111111111'); $typeZ->setFileCreationNumber('1111'); $typeZ->setTotalAmountOfCredits('111.11'); $typeZ->setTotalAmountOfDebits('0'); $typeZ->setTotalNumberOfCredits('1'); $typeZ->setTotalNumberOfDebits('1'); // Add logical record type to file for writing $file->addLogicalRecord($typeZ, 'Z'); // Write content to file for download $writer = new Writer; $writer->setFile($file); $writer->download(); // If you want to dump file content $writer->dump();

Write, style and download array content to XLS file using simple to use syntax

use Oml\PHPFileManager\Document\Xls; // Init XLS Writer $doc = new Xls\Writer; // Add Rows $doc->addRows(array('Ibrahim', 'Azhar', 'azhar@iarmar.com')); $doc->addRows(array('John', 'Doe', 'john@doe.com')); // Set width for column $doc->setWidthForColumn('A', 10); // Set background color for column range (without hash symbol) $doc->setBackgroundColorForColumnRange('A1:D1', '000000'); // Set font color for column range (without hash symbol) $doc->setFontColorForColumnRange('A1:D1', 'FFFFFF'); // Align text for column range (HORIZONTAL_CENTER, HORIZONTAL_LEFT, HORIZONTAL_RIGHT) $doc->alignTextForColumnRange('A1:D1', 'HORIZONTAL_CENTER'); // Trigger download $doc->download(); // Init XLS Reader $doc = new Xls\Reader('/file/path/document.xlsx'); // Replace column with indexes $doc->replaceColumnWithIndex('0', 'last_name'); $doc->replaceColumnWithIndex('1', 'first_name'); $doc->replaceColumnWithIndex('2', 'email'); // Remove column with indexes $doc->removeColumnWithIndexes(array('25, 26, 27')); // Dump content $content = $doc->toArray();

About

PHP Utility Class to Manage Files and Operations

Читайте также:  Javascript date to string format mm dd yyyy

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

filemanager

Here are 74 public repositories matching this topic.

kalcaddle / KodExplorer

A web based file manager,web IDE / browser based code editor

prasathmani / tinyfilemanager

Single-file PHP file manager, browser and manage your files efficiently and easily with tinyfilemanager

filegator / filegator

Powerful Multi-User File Manager

kalcaddle / kodbox

kodbox is a file manager for web. It is a newly designed product based on kodexplorer. It is also a web code editor, which allows you to develop websites directly within the web browser.You can run kodbox either online or locally,on Linux, Windows or Mac based platforms

SergiX44 / XBackBone

A lightweight file manager with full ShareX support and more

alexantr / filemanager

File manager in a single php file

sunhater / kcfinder

KCFinder web file manager

haruncpi / laravel-simple-filemanager

A simple filemanager for Laravel Framework

mshossain110 / LaravelDrive

Private file storage and share with user build with laravel and vue inspired by google drive

kotkaramit28 / php-file-manager

monomichael / FileManager

基于PHP Laravel的文件管理器 / A PHP File Manager built on top of Laravel

webcdn / File-Explorer

A File Manager with stunning design & astonishing develops, beautifully written in PHP, everything fused in a single file.

moemoe89 / codeigniter-ckeditor-filemanager

📝 Codeigniter with CKEDITOR and FILEMANAGER

mafftor / laravel-file-manager

Laravel File Manager — media gallery with CKEditor, TinyMCE and Summernote support. Filemanager

alexantr / yii2-elfinder

elFinder file manager for Yii 2

Читайте также:  Java integer equal to null

guillermomartinez / filemanager-php

It is the connector to the File Manager, regardless of the GUI.

rkit / filemanager-yii2

buttflattery / idows-tinyii-filemanager

File Manager Plugin for TinyMCE, Redactor & CKEditor to be intergrated within Yii 1.x frameworks

thinkdj / simple-php-file-manager

A Simple PHP file manager. The code is a single php file.

Kwaadpepper / laravel-responsivefilemanager

Laravel Responsive File Manager integration

Improve this page

Add a description, image, and links to the filemanager topic page so that developers can more easily learn about it.

Add this topic to your repo

To associate your repository with the filemanager topic, visit your repo’s landing page and select «manage topics.»

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

License

leefish/filethingie

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Читайте также:  What is remote object in java

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.markdown

File Thingie — PHP File Manager

File Thingie is a PHP file manager for managing local files. See more at http://www.solitude.dk/filethingie/

For bug reports use the github issue tracker.

File Thingie was one of my very first PHP projects and it’s going on github so I will feel motivated to writing a more modern version.

Источник

Оцените статью