JSON Schema を使ってみた。今回の内容は2つ。 JSON Schema への参考資料のリンクを整理する PHPでバリデーションのサンプルをメモする JSON Schema について JSON はJavaScriptのオブジェクト表現をベースにしたデータ記述言語で様々なデータ構造を記述できる。 データがあると型・メタ情報を扱いたくなる。JSONデータに対するスキーマ定義の仕様が幾つかある。 JSON Schemaは有力候補の1つ。 JSON Schema 資料集 公式ドキュメントは以下のdraftへのリンクを掲載している。 JSON Schema: core definitions and terminology JSON Schema: interactive and non interactive validation JSON Hyper-Schema: Hypertext
Monolog 「運用中のサービスにバグが見つかったけど、再現方法がわからない」。そんな困った事態にならないよう、Monologで手がかりになる値を残しておきましょう。 Monologはphp composer.phar require monolog/monolog でインストールできます。 試しに簡単なログ出力をやってみましょう。public/index.phpを以下のように書いてください。 <?php require '../vendor/autoload.php'; use Monolog\Logger; use Monolog\Handler\StreamHandler; // Monologでログを出力してみる $log = new Logger('cool-php-libraries'); $log->pushHandler(new StreamHandler('../log
PHP coding style formatter - Tooling for formatting, testing and code coverage View project on GitHub Installation You can install this application through git clone: git clone https://github.com/dericofilho/php.tools.git or through composer: php composer.phar require dericofilho/fmt What does the Code Formatter do? It analyses your code and put in K&R format or, if you ask, PSR1, PSR2, or both.
scssphp is a compiler for SCSS written in PHP. SCSS is a CSS preprocessor that adds many features like variables, mixins, imports, color manipulation, functions, and tons of other powerful features. The entire compiler comes in a single class file ready for including in any kind of project in addition to a command line tool for running the compiler from the terminal. scssphp implements SCSS (3.2.1
Under the hood is an easy-to-use Web development tool kit, a high-performance URL routing, multi-protocol cache engine, built-in code highlighting, and support for multilingual i18n applications. Start Now There's no better time to start developing Web applications the easy way than right now! Composer composer require bcosca/fatfree-core Direct Download Download the latest release You can also gr
Moving fast with high performance Hack The landing page for HHVM and the blog of Hack/HHVM What is HHVM? HHVM is an open-source virtual machine designed for executing programs written in Hack. HHVM uses a just-in-time (JIT) compilation approach to achieve great runtime performance while maintaining amazing development flexibility. HHVM supports the Hack programming language. We are moving fast, ma
この投稿は 10年 前に公開されました。いまではもう無効になった内容を含んでいるかもしれないことをご了承ください。 最近PythonのTornadoというのを使っていて、はじめてノンブロッキングWebサーバをまともに触ったのですが、いままで自分がやってきたWebプログラミングとは結構違っていて、面白く感じました。 特に1つのアクセスが1つのクラスに対応するというのが面白かったです。これ説明したら「は?」って言われたんですけどね。 で、僕が管理しているサイトはほとんどWordPressなので、残念ながらいわゆる普通のPHPアプリケーションです。最近はBackbone.JSとかAngularJSでページ遷移なしにガンガンUIが変わるWebアプリケーションが流行りですが、そういうサイトは凄まじい数のAjaxリクエストが飛んでくるので、WordPressだとサーバがパンクしてしまいます。 特にWo
Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB and others via plugin. Features, Requirements, Skins, References Why is Adminer better than phpMyAdmin? Replace phpMy
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く