> 다운로드 >  라이브러리 다운로드

  • <?php use phpFastCache\CacheManager; // Include composer autoloader require '../vendor/autoload.php'; $InstanceCache = CacheManager::getInstance('apc'); /**  * Try to get $products from Caching First  * product_page is "identity keyword";  */ $key = "product_page"; $CachedString = $InstanceCache->get($key); if (is_null($CachedString)) {     $CachedString = "APC Cache --> Cache Enabled --> Well done !";     // Write products to Cache in 10 minutes with same keyword     $InstanceCache->set($key, $CachedString, 600);     echo "FIRST LOAD // WROTE OBJECT TO CACHE // RELOAD THE PAGE AND SEE // ";     echo $CachedString; } else {     echo "READ FROM CACHE // ";     echo $CachedString; } echo '<br /><br /><a href="/">Back to index</a>&nbsp;--&nbsp;<a href="/' . basename(__FILE__) . '">Reload</a>';PHP 캐싱 기술은 개발 프로세스에서 매우 일반적으로 사용되며 중요합니다. 캐싱 기술은 서버 부하를 줄이고 네트워크 정체를 줄이며 www.scalability를 향상시킬 수 있습니다. 기본 아이디어는 고객 액세스의 시간 지역성을 사용하여 데이터를 저장하는 것입니다. 고객이 방문한 콘텐츠는 캐시에 복사본을 저장합니다. 다음에 콘텐츠에 액세스할 때 상주 웹 사이트에 연결할 필요가 없습니다.

    캐싱 라이브러리47362017-12-22
  • <?php namespace CacheTool; use CacheTool\Code; class CodeTest extends \PHPUnit_Framework_TestCase {     public function testFactory()     {         $code = Code::fromString('return true;');         $this->assertSame('return true;', $code->getCode());     }     public function testAddStatement()     {         $code = new Code();         $code->addStatement('$a = 10;');         $this->assertSame('$a = 10;', $code->getCode());         $code->addStatement('return $a;');         $this->assertSame("$a = 10;\nreturn $a;", $code->getCode());     }     public function testWriteTo()     {PHP 캐싱 기술은 개발 프로세스에서 매우 일반적으로 사용되며 중요합니다. 캐싱 기술은 서버 부하를 줄이고 네트워크 정체를 줄이며 www.scalability를 향상시킬 수 있습니다. 기본 아이디어는 고객 액세스의 시간 지역성을 사용하여 데이터를 저장하는 것입니다. 고객이 방문한 콘텐츠의 사본은 캐시에 저장되며, 다음번에 해당 콘텐츠에 접속할 때 호스팅 웹사이트에 연결할 필요 없이 캐시에 보관된 사본으로 제공됩니다. PHPcachetool 클리어 APC_opcode 캐시 라이브러리가 그러한 라이브러리입니다.

    캐싱 라이브러리47772017-12-22
  • <?php namespace DMS\Filter; /**  * Filter Object, responsible for retrieving the filtering rules  * for the object and applying them  *  * @package DMS  * @subpackage Filter  *  */ use DMS\Filter\Filters\Loader\FilterLoaderInterface; /**  * Class Filter  *  * Executor, receives objects that need filtering and executes attached rules.  *  * @package DMS\Filter  */ class Filter implements FilterInterface {     /**      *      * @var Mapping\ClassMetadataFactory      */     protected $metadataFactory;     /**      * @var FilterLoaderInterface      */     protected $filterLoader;     /**      * Constructor      *      * @param Mapping\ClassMetadataFactory $metadataFactory      * @param FilterLoaderInterface $filterLoader      */     public function __construct(Mapping\ClassMetadataFactory $metadataFactory, $filterLoader)     {         $this->metadataFactory = $metadataFactory;         $this->filterLoader    = $filterLoader;     }PHP에는 몇 가지 유용한 기능이 오픈소스로 공개되어 있어 SQL 인젝션 공격, XSS(Cross Site Scripting: 크로스 사이트 스크립팅) 공격 등 다양한 공격으로부터 웹사이트를 보호하는데 매우 편리합니다. dms-filter의 PHP 필터링 라이브러리는 다른 사람이 당신을 악의적으로 공격하는 것을 방지하는 필터링 라이브러리입니다. 필요한 친구들이 다운로드하여 사용할 수 있습니다.

    기타 도서관19062017-12-22
  • #!/usr/bin/env php <?php /*  * This file is part of Composer.  *  * (c) Nils Adermann <naderman@naderman.de>  *     Jordi Boggiano <j.boggiano@seld.be>  *  * For the full copyright and license information, please view  * the license that is located at the bottom of this file.  */ // Avoid APC causing random fatal errors per https://github.com/composer/composer/issues/264 if (extension_loaded('apc') && ini_get('apc.enable_cli') && ini_get('apc.cache_by_default')) {     if (version_compare(phpversion('apc'), '3.0.12', '>=')) {         ini_set('apc.cache_by_default', 0);     } else {         fwrite(STDERR, 'Warning: APC <= 3.0.12 may cause fatal errors when running composer commands.'.PHP_EOL);         fwrite(STDERR, 'Update APC, or set apc.enable_cli or apc.cache_by_default to 0 in your php.ini.'.PHP_EOL);     } } Phar::mapPhar('composer.phar'); require 'phar://composer.phar/bin/composer';경량 라이브러리는 개발 복잡성을 줄이는 데 중점을 두고 있으며 이에 따라 처리 기능이 약해지고(예: 약한 트랜잭션 기능 및 분산 처리 기능 없음) 중소기업 애플리케이션 개발에 더 적합합니다.

    기타 도서관21122017-12-22
  • #!/usr/bin/env php <?php /*  * This file is part of Composer.  *  * (c) Nils Adermann <naderman@naderman.de>  *     Jordi Boggiano <j.boggiano@seld.be>  *  * For the full copyright and license information, please view  * the license that is located at the bottom of this file.  */ // Avoid APC causing random fatal errors per https://github.com/composer/composer/issues/264 if (extension_loaded('apc') && ini_get('apc.enable_cli') && ini_get('apc.cache_by_default')) {     if (version_compare(phpversion('apc'), '3.0.12', '>=')) {         ini_set('apc.cache_by_default', 0);     } else {         fwrite(STDERR, 'Warning: APC <= 3.0.12 may cause fatal errors when running composer commands.'.PHP_EOL);         fwrite(STDERR, 'Update APC, or set apc.enable_cli or apc.cache_by_default to 0 in your php.ini.'.PHP_EOL);     } } Phar::mapPhar('composer.phar'); require 'phar://composer.phar/bin/composer'; __HALT_COMPILER(); ?>composer는 PHP 종속성 관리 도구입니다. 최소 버전은 5.3.2입니다. 컴파일 시 --with-openssl 매개변수를 추가해야 합니다.

    기타 도서관20182017-12-22
  • <?php namespace Collections; interface ConstCollectionInterface extends \Countable {     /**      * Verifies whether a collection is empty      * @return bool Returns TRUE if the collection is empty; FALSE otherswise.      */     public function isEmpty(); }우리는 PHP 언어의 가장 중요한 기능 중 하나가 배열(특히 연관 배열)이라는 것을 알고 있습니다. PHP는 배열 작업을 용이하게 하기 위해 많은 함수와 클래스 인터페이스도 제공하지만, 배열 작업에 특별히 사용되는 포괄적인 클래스는 없습니다. 배열 작업이 많지 않은 경우 개별 기능을 사용하는 것이 더 유연하고 오버헤드가 적습니다. 그러나 배열을 자주 조작하는 경우, 특히 배열에 대해 정렬, 푸시, 큐 제거, 뒤집기, 반복 등 다양한 작업을 수행하는 경우 시스템 기능이 사용하기에 그다지 우아하지 않을 수 있습니다. 오늘은 배열에서 동작하는 collectionsPHP의 컬렉션 추상 라이브러리를 소개하겠습니다.

    기타 도서관14122017-12-22
  • <?php namespace Cake\Collection; use ArrayIterator; use InvalidArgumentException; use IteratorIterator; use LogicException; use Serializable; use Traversable; class Collection extends IteratorIterator implements CollectionInterface, Serializable {     use CollectionTrait;     /**      * Constructor. You can provide an array or any traversable object      *      * @param array|\Traversable $items Items.      * @throws \InvalidArgumentException If passed incorrect type for items.      */     public function __construct($items)     {         if (is_array($items)) {             $items = new ArrayIterator($items);         }         if (!($items instanceof Traversable)) {             $msg = 'Only an array or \Traversable is allowed for Collection';             throw new InvalidArgumentException($msg);         }         parent::__construct($items);     }컬렉션을 얻기 위한 구문이고 데이터베이스를 얻기 위한 컬렉션 라이브러리입니다.

    기타 도서관19212017-12-22
  • <?php namespace Cake\Cache; use BadMethodCallException; use Cake\Core\App; use Cake\Core\ObjectRegistry; use RuntimeException; class CacheRegistry extends ObjectRegistry {     /**      * Resolve a cache engine classname.      *      * Part of the template method for Cake\Core\ObjectRegistry::load()      *      * @param string $class Partial classname to resolve.      * @return string|false Either the correct classname or false.      */     protected function _resolveClassName($class)     {         if (is_object($class)) {             return $class;         }         return App::className($class, 'Cache/Engine', 'Engine');     }Cache는 데이터 교환을 위한 버퍼(캐시라고 함)입니다. 하드웨어가 데이터를 읽으려고 하면 먼저 캐시에서 필요한 데이터를 검색합니다. 찾을 수 없으면 메모리에서 실행됩니다. 캐시는 메모리보다 훨씬 빠르게 실행되므로 캐시의 목적은 하드웨어가 더 빠르게 실행되도록 돕는 것입니다. 캐시는 RAM(전원을 끄면 손실되는 비영구적 저장소)을 사용하는 경우가 많기 때문에 파일은 사용 후에도 영구 저장을 위해 하드 디스크나 기타 저장소로 전송됩니다. 컴퓨터에서 가장 큰 캐시는 메모리 스틱입니다. 가장 빠른 것은 CPU에 내장된 L1 및 L2 캐시입니다. 그래픽 카드의 비디오 메모리는 16M 또는 32M 캐시도 있습니다. 하드 디스크에.

    캐싱 라이브러리49522017-12-22
  • <?php if (!isset($argv)) {     fprintf(STDERR, "Must be run on command line");     exit(1); } if (!isset($argv[1])) {     fprintf(STDERR, "USAGE: %s source1 [source2...]" . PHP_EOL, $argv[0]);     exit(2); } fwrite(STDOUT, "<?php" . PHP_EOL); foreach (array_slice($argv, 1) as $file) {     fwrite(STDOUT, "require __DIR__ . '/$file';" . PHP_EOL); }데이터 구조는 컴퓨터가 데이터를 저장하고 구성하는 방식입니다. 데이터 구조는 서로 하나 이상의 특정 관계를 갖는 데이터 요소의 모음을 나타냅니다. 신중하게 선택한 데이터 구조는 종종 운영 또는 저장 효율성을 높일 수 있습니다. 데이터 구조는 효율적인 검색 알고리즘 및 인덱싱 기술과 관련이 있는 경우가 많습니다.

    기타 도서관17542017-12-22
  • <?php namespace Valitron; /**  * Validation Class  *  * Validates input against certain criteria  *  * @package Valitron  * @author  Vance Lucas <vance@vancelucas.com>  * @link    http://www.vancelucas.com/  */ class Validator {    public function __construct($data = array(), $fields = array(), $lang = null, $langDir = null)     {         // Allows filtering of used input fields against optional second array of field names allowed         // This is useful for limiting raw $_POST or $_GET data to only known fields         $this->_fields = !empty($fields) ? array_intersect_key($data, array_flip($fields)) : $data;         // set lang in the follow order: constructor param, static::$_lang, default to en         $lang = $lang ?: static::lang();         // set langDir in the follow order: constructor param, static::$_langDir, default to package lang dir         $langDir = $langDir ?: static::langDir();         // Load language file in directory         $langFile = rtrim($langDir, '/') . '/' . $lang . '.php';         if (stream_resolve_include_path($langFile) ) {             $langMessages = include $langFile;             static::$_ruleMessages = array_merge(static::$_ruleMessages, $langMessages);         } else {             throw new \InvalidArgumentException("Fail to load language file '" . $langFile . "'");         }     }검증은 정보 제공 용어로, 특정 보안 요구 사항을 검증할 수 있도록 정의된 특정 규칙 집합을 준수하는지 코드를 검사하는 컴파일 프로세스의 일부입니다. 공용 언어 런타임은 MSIL(Microsoft Intermediate Language)을 확인할 수 있습니다. 서버 측 검증은 양식이 제출된 후 서버 측 코드가 고객 입력을 검증할 때까지 서버 측에서 JAVA를 사용하는 것을 의미합니다.

    기타 도서관18492017-12-21
  • <?php /**  * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)  * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)  *  * Licensed under The MIT License  * For full copyright and license information, please see the LICENSE.txt  * Redistributions of files must retain the above copyright notice.  *  * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)  * @link          https://cakephp.org CakePHP(tm) Project  * @since         3.0.0  * @license       https://opensource.org/licenses/mit-license.php MIT License  */ namespace Cake\Validation; /**  * Describes objects that can be validated by passing a Validator object.  */ interface ValidatableInterface {     /**      * Validates the internal properties using a validator object and returns any      * validation errors found.      *      * @param \Cake\Validation\Validator $validator The validator to use when validating the entity.      * @return array      */     public function validate(Validator $validator); }검증은 정보 제공 용어로, 특정 보안 요구 사항을 검증할 수 있도록 정의된 특정 규칙 집합을 준수하는지 코드를 검사하는 컴파일 프로세스의 일부입니다. 공용 언어 런타임은 MSIL(Microsoft Intermediate Language)을 확인할 수 있습니다. 서버 측 검증은 양식이 제출된 후 서버 측 코드가 고객 입력을 검증할 때까지 서버 측에서 JAVA를 사용하는 것을 의미합니다.

    기타 도서관16212017-12-21
  • <?php namespace Respect\Validation; use ReflectionClass; use Respect\Validation\Exceptions\ComponentException; class Factory {     protected $rulePrefixes = ['Respect\Validation\Rules\'];     public function getRulePrefixes()     {         return $this->rulePrefixes;     }     private function filterRulePrefix($rulePrefix)     {         $namespaceSeparator = '\';         $rulePrefix = rtrim($rulePrefix, $namespaceSeparator);         return $rulePrefix.$namespaceSeparator;     }     public function appendRulePrefix($rulePrefix)     {         array_push($this->rulePrefixes, $this->filterRulePrefix($rulePrefix));     }     public function prependRulePrefix($rulePrefix)     {         array_unshift($this->rulePrefixes, $this->filterRulePrefix($rulePrefix));     }Validation-1.1PHP 검증 라이브러리는 사용하기 매우 쉬운 검증 라이브러리입니다검증(Verification)은 정보 제공 용어로, 코드가 정의된 특정 규칙 집합을 준수하는지 확인하는 컴파일 프로세스의 일부입니다. 특정 안전 요구 사항을 지속적으로 검증할 수 있습니다. 공용 언어 런타임은 MSIL(Microsoft Intermediate Language)을 확인할 수 있습니다. 서버 측 검증은 양식이 제출된 후 서버 측 코드가 고객 입력을 검증할 때까지 서버 측에서 JAVA를 사용하는 것을 의미합니다.

    기타 도서관24032017-12-21