Skip to content

Releases

v0.6.1-alpha

v0.6.1-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Nov 14:57

What's new in 0.6.1-alpha

  • A keystroke in a large PHP file no longer re-runs the highlight query over the whole file: the spans already in hand are reused, moved by the byte delta the edit caused, and only a window of sixty lines above and below the edit is queried again (php_syntax::highlight_tree_range, which hands the byte range to the query cursor), so the same 3250-line, 296 KB view that cost 21 ms per keystroke after the incremental parse now costs 0.34 ms. Files under 400 lines still take the exact whole-file path, where the difference would be noise, and a comment or a string that opens before the window falls back to the full pass, because a fragment cannot know that it started inside one. The test drives 500 lines through the windowed path and compares every span after the edit with a full parse; a reopened file matches it too.
  • Typing in a large PHP file no longer re-parses it: the buffer keeps the tree-sitter parse its highlights came from, records the single edit that took the text to the next version (byte range plus the three points tree-sitter needs), and the next paint hands that tree back to the parser, which then re-reads only the changed block — on a 3250-line, 296 KB Blade-compiled view a keystroke costs 7.7 ms instead of 21 ms, the difference between parsing the file again (12.9 ms) and not doing it. The parser is now reachable through one thread-local helper so parse and the new reparse share it, anything that is not PHP (hand-written highlighters) keeps going through highlight_lang, and a batch of edits or an undo of a group drops the tree instead of pretending it is still valid, so the next paint parses from scratch rather than colouring against a stale tree. A test compares the incremental spans with a full php_syntax::highlight after every keystroke and after a multi-edit step.
  • The answer of an .http request now has a panel of its own instead of the plain output log: the header row carries the method and URL, the status (green below 400, red above), the round-trip time and the size, then tabs switch between a syntax-coloured body and the raw headers, and Copy and Save… take the body out (the save lands in http/ under the name the URL ends with, or response.json/.html/.xml when the URL is a bare host). JSON is pretty-printed before it is coloured so a minified API answer reads like a document, the grammar follows the content type, and a body past 256 KB is shortened with a note — Save still writes everything the server sent. The old format_response text dump went away with the log line it fed, and the panel's own strings (plus the HTTP client's remaining English ones) went through tr.
  • Watch expressions: the Debug window keeps a list of PHP expressions that are evaluated again on every stop, so $user->id, count($items) or $order->status() are read without retyping them into the evaluate field after each step. The list lives in .phpcraft/debug.json next to the port and the path mappings, is sent to the session as it pauses (each answer lands next to its own expression rather than in the history), shows "evaluating…" while it is on its way and stays visible when the run finishes so the last values can still be read. Enter in the watch field adds and evaluates an expression immediately, the cross next to a row forgets it, and duplicates are collapsed — the field has its own key context so Enter there does not run the evaluate field above it.
  • The rest of the Windows lag is gone: git status now runs with --untracked-files=normal, so an unversioned folder is one row instead of a walk through everything inside it (the untracked node_modules case that made each poll read thousands of entries), and the Commit panel shows such a folder by name and reveals it in the project tree instead of trying to diff it. The gutter's HEAD version of a file is cached against the commit HEAD points at — read from .git/HEAD and the branch ref file, with packed-refs' stamp as the fallback — so switching between open tabs no longer starts a git show per tab, while a commit or checkout invalidates the cache by itself. The history asks for 300 commits first and grows by another 300 through a "Load more" footer, instead of git log --all building a thousand rows before the window shows anything.
  • The Git window no longer builds the whole history to show a screen of it: the log list is a virtualised list that only materialises the rows in view (a thousand commits used to mean a thousand rows plus a commit-graph canvas each, rebuilt on every frame — the reason the window dragged while files were opened on Windows), and the polling that keeps the Changes panel fresh now asks git once instead of three times, because git status --branch --porcelain already carries the branch name and the ahead/behind counts in its header. git::Repo::status_branch parses that header (including a detached head and a repository without commits) and returns the same FileStatus rows as before, so the panel, the excluded-file bookkeeping and the compare view are unchanged.
  • The empty editor no longer speaks only Russian: the placeholder that shows when no tab is open ("Open a file in the project tree" and its shortcut line) was written straight into the source in Russian, so an English UI showed it too; both lines now go through i18n::tr with the Russian text in the locale file, which also brings back the usual fallback for every other language.
  • The SFTP panel and the Modules window can now do the small daily things that still needed a terminal: a remote folder downloads with everything under it (one listing per level, one transfer for all files, keeping the folders it needs), a selected file or folder can be renamed or deleted on the server after a confirmation, and uploads leave .git, .idea, .phpcraft, vendor and node_modules behind instead of shipping megabytes of rebuilt code. deployment::tree_under walks the remote side, download_tree mirrors it locally, delete_remote_path removes files before the folders that held them, and rename_remote keeps the entry in its folder. Modules gained the package's own layouts in the creation dialog — default, plain, api, web, passed as module:make --plain and friends — plus "Laravel: New Module…" and "Laravel: Delete Module…" in the context menu of Modules/, the delete running module:delete once confirmed and closing the tabs of files it removed. The project tree's context menu now runs its labels through i18n::tr as well, so the whole menu follows the language setting.

Made with ❤️ in Azerbaijan · https://path.az

v0.6.0-alpha

v0.6.0-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Nov 11:42

What's new in 0.6.0-alpha

  • The project's .phpcraft folder now keeps itself out of git no matter who creates it: the workspace plants it (with its .gitignore of *) the moment a project opens, and the libraries that used to create it on their own — laravel writing laravel.json and datasources.json, the spell checker writing dictionary.txt, the debugger writing debug.json — go through the same helper, so a setting saved before any session or run configuration existed can no longer turn up as untracked JSON in the user's repository. laravel::settings::ensure_state_dir is the shared entry point there, and the settings test now asserts the ignore file.
  • The Modules window can create a module: a "+ New Module…" link in the panel and Laravel ▸ New Module… ask for a name, spell it the way laravel-modules does (blog, my-blog → Modules/Blog), refuse punctuation and an existing folder, and then let the package itself build the module with php artisan module:make, whose output lands in the Output panel and whose module.json opens once the command succeeds — the stub layout stays the installed version's instead of a copy that would drift. The panel also appears as soon as the package is in composer.json, even before a first module exists, so the window is reachable from an empty project, and it says so when laravel-modules is missing.
  • SFTP gained the three things that were only possible by menu: files now drag, several servers became choosable, and the open file carries its own upload button. A project row (or a whole folder, which expands to the files it holds) dragged onto the Remote panel goes up in one connection to the folder being browsed, Finder files do the same, and a remote file dragged onto the project tree comes down to the path the same relativeness maps to. Because a project can have more than one server, Upload… / Download… open a modal listing them with their user@host, remote root and the default marker — Enter acts, "Make Default" changes where automatic upload goes — and the new ⌥⇧⌘U / ⇧⌥⌘D shortcuts and the Deployment submenu lead there too, while ⌥⇧⌘X / ⌥⇧⌘D keep working with the current server. The tab bar shows a chip for the open SFTP file: muted when it was never uploaded, accent when changed since, green when it matches the server, "…" while an upload runs; clicking uploads, the caret or ⌥-click asks which server. deployment::files_under/remote_for/upload_many/download_many batch every drag into one sftp session, and the Remote panel's upload/download pick entries cover the same paths.

Made with ❤️ in Azerbaijan · https://path.az

v0.5.1-alpha

v0.5.1-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:04

What's new in 0.5.1-alpha

  • The per-project folder is now invisible to git: .phpcraft is created through config::project_dir(), which writes a .gitignore of * inside it, so the session, run configurations, interpreter, deployment, data sources and the project dictionary never appear as untracked files in the user's repository and no manual ignore rule is needed — an edited ignore file is left alone, so a team can share the folder deliberately. Every writer goes through the helper, a stray .phpcraft/session.json that a dev run of the app had committed is removed from the index and the folder is listed in the repository's own .gitignore as a second line of defence.
  • Buttons and tool windows now name their text colour instead of trusting the window default: a div that sets no colour inherits black, which is invisible on the dark panels, so every secondary dialog button ("Commit and Push", the merge window's "Use Local", the data-source buttons and the rest) drew its label in black, and any plain label in a tool window could too. dialogs::button now sets theme::ui_text() for the bordered variant and keeps white on the accent-filled one, the tool-window panel and the workspace root both carry theme::ui_text() as their inherited colour, and the commit footer puts the plain Commit action on the left and Commit and Push on the right so the two are read as separate buttons.
  • The Debug window now owns breakpoints: it lists every breakpoint of the project with the PHP condition each one carries, a pencil opens the condition for editing (an empty answer removes it), the cross deletes the breakpoint, and the gutter draws a ring instead of a solid dot wherever the breakpoint only stops on a condition — the protocol already sent condition with breakpoint_set, but nothing in the UI could ever write one, so conditional breakpoints were unreachable. breakpoints::set_condition updates or creates one breakpoint and saves; editing from the window re-reads the store into every open editor so their anchors do not overwrite the condition on the next save, and the running session is told through breakpoints_changed.
  • Intention actions (⌥↵) now come from the analysis crates as a template plus the values that filled it, the same way inspection messages already do, so the menu is rendered through i18n::trf and Russian word order works: a php_analysis::Intention gained template and params next to the built English label, Intention::new builds both in one place, i18n::intention translates one for display, and every PHP and Laravel intention — quotes, concatenation, flip, array syntax, closures, visibility, nullable types, invert if, import class, unused variable, facade to injection, validation rules, #[Scope] — carries its wording instead of a finished sentence. The spelling quick fixes ("Change to '…'", "Save '…' to project dictionary") and the unused-variable fix in the ⌥↵ menu go through the same lookup, and fill_template moved to the crate root so inspections and intentions share it.
  • Tidy the handoff notes: the intention labels are already listed in the localization gap, so the gap list no longer repeats them.
  • Files changed on disk are now watched by the operating system instead of being polled every two seconds: the platform watcher (FSEvents, ReadDirectoryChangesW, inotify through notify) is registered on the folders of the open tabs only, so vendor and node_modules cost nothing, it grows and shrinks as tabs come and go, read-only access events are dropped, and a file that is still being written is skipped until its stamp settles — a save that ends up in half a file can never reach a buffer. Changes that arrive while the window is in the background queue their question and are asked on return, and answering "Reload" reads the file once more instead of trusting the copy captured when the question was raised. The same wave makes the analysis crates translatable: a php_analysis::Problem now carries the English template and the values that went into it alongside the built sentence, so the app renders inspections — and the messages of PHPStan, Psalm, PHPCS and a merge conflict — through i18n::trf into Russian word order, and the About text goes through tr/trf as well.
  • Structural search: Edit ▸ Structural Search… (⌥⌘F, also a Search Everywhere row) searches the project for a pattern written in PHP tokens with $A$ holes instead of text, so $A$->where($B$) finds every where call whatever its formatting, comments or line breaks, a hole never runs past a ;, and a hole used twice must stand for the same expression both times; the tokenizer in crates/search/src/structural.rs treats strings, heredocs and comments as single tokens, holes must stay balanced, and the replacement fills the holes back ($A$->filter($B$)) across every file with hits, recording them in Local History as "Before Structural Replace" and reporting the count in the Output panel. The dialog follows Find in Files: a live result list with the hit highlighted and path:line on the right, *.php mask (or any globs, plus vendor), double-click to jump, Enter to open the selected hit, and Replace All.
  • Run Anything: a double tap of Ctrl (or ⌥⌘↵, Run ▸ Run Anything…, and the same entry in Search Everywhere) opens one field over the whole project's way of starting something — saved and detected run configurations, the Artisan command list (cached, fetched off the UI thread the first time), the lines typed into it before, and the line being typed. Enter runs the selected row; Tab puts an Artisan command into the field so its arguments can be appended, Shift+Enter still saves a configuration, and a line that names no command falls through to the shell, so php -v, git status or composer dump-autoload need no configuration at all. A typed line whose first word is an Artisan command runs through php artisan with the rest as arguments, and every executed line is remembered newest first in .phpcraft/run.json (history, capped at 30, deduplicated), which is what the Recent section lists. The double-modifier detection is now shared with ⇧⇧ Search Everywhere, and the dialog's rows carry the command each configuration expands to as their detail line.

Made with ❤️ in Azerbaijan · https://path.az

v0.5.0-alpha

v0.5.0-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 18 Nov 17:52

What's new in 0.5.0-alpha

  • Saved window layouts: View ▸ Window Layouts… (also in Search Everywhere) lists named arrangements of the tool windows, stored in layouts.json beside layout.json, so the stripes' docks, the open panels and the panel sizes can be swapped between, say, an editing setup and a debugging one. The dialog applies an entry with ↵ or Apply, deletes one from its row, and saves the current arrangement under the typed name — an empty name updates the selected entry, names match case-insensitively and the list stays sorted; every row shows which panel sits on which edge plus the three sizes. Applying adopts the saved layout, keeps the panels that need a running session (terminal, AI, Git log, database, Laravel) closed exactly as on startup, and persists the result as the current arrangement, with the outcome reported in the Output panel. Added unit tests for the store and for the summary line.
  • Prepare 0.5.0-alpha: the version is bumped in Cargo.toml and in both site pages, and the handoff notes in AGENTS.md record what this wave added (three-way merge window, JS/TS module resolution with import rewriting, Move Class with its companions, Import Class, session restore with scroll and folds, external-change prompts, the Russian UI) while the remaining-gaps list keeps only what is still open.
  • Session restore now puts every reopened file back the way it was left: the first visible visual row and the collapsed folds are saved per file in .phpcraft/session.json (rows instead of pixels, so another window size or font size still lands in place), with the folds replayed through the syntax folding candidates and skipped where the text has changed. Fold saving reads the buffer without expanding anything, so closing a window never loses folded code. Tool-window layout and window geometry were already persisted (.phpcraft/layout.json, window_state), and the split panes are equal-width by design, so no ratio is stored.
  • External file changes now ask before they touch an editor buffer: a file rewritten by git, Artisan or another editor while the buffer has unsaved edits shows a "File Changed on Disk" question (Reload or keep the edits), a file deleted from disk asks whether to close its tab, and clean buffers keep reloading silently as before. The poll runs in the window itself (it now updates through the window handle), so the questions can be asked from the background task one at a time and cancelled with Esc, and crates/app/src/dialogs/confirm.rs adds a generic ConfirmPrompt whose id travels back with the answer as DialogEvent::Confirmed.
  • Move Class (F6) now carries the declarations that belong to the class with it: a trait, interface or enum declared in the same file that the moved class uses — and that no other declaration of that file refers to — moves into the new PSR-4 file too, so a class does not arrive in its new namespace with a dangling use pointing back at the old one. References to those companions are rewritten in every file just like the class's own, each declaration is removed from the old file, and the Output panel now reports the moved FQNs plus the list of files that were updated, which Local History holds as "Before Move Class". Added php_analysis::companions with tests for the shared-trait case that must stay behind.
  • JS/TS module resolution now follows the project's own settings: a new js_analysis::Resolve reads compilerOptions.baseUrl and paths from tsconfig.json / jsconfig.json (JSONC-tolerant), the resolve.alias of a Vite config in both the object and the find/replacement array form, and keeps the Laravel @/ / ~/ convention as the fallback, so go to declaration, usages and completion work with @app/*-style aliases instead of only resources/js. Renaming a JS or TS file now rewrites every import and re-export that pointed at it, written the way each specifier already was — an alias stays an alias, a relative path stays relative, .vue keeps its extension — through open editors or on disk. Added a TSX round-trip test so JSX tags resolve to their imported component.
  • Three-way merge window: the merge dialog now rebuilds the conflicted file with ||||||| ancestor sections from the index stages (git show :1:path), so a BASE pane sits between LOCAL and RESULT whenever the common ancestor is known, and the three panes are syntax-highlighted from the whole file instead of being plain text. Non-overlapping edits inside one conflict block are merged line by line on open and through the Auto-merge button (A), which leaves only genuinely overlapping lines for a decision; each conflict now stores the text it resolves to, so Both/Both-reversed, auto-merged and cleared (U) decisions all paint the same result pane. Added j/k/n/p walking, a remembered A/U shortcut line, and git::merge3 + git::auto_merge + resolve_all_texts with unit tests.
  • Localize the dialogs and the project window into Russian: the shared dialog button in dialogs.rs now renders its label through i18n::tr, so every dialog gets translated buttons without touching call sites, and TextField placeholders, section headers, status lines, tooltips and hints across input, git_prompt, shelf, git_lists, rebase, run, projects, datasource, find_files, pull_requests, merge, prefs, git, navigate and make dialogs go through tr/trf. The same sweep covers the welcome screen, the update and What's New windows, the find bar, the services, tests, git compare, problems and other tool windows. ru.json grows to about 600 keys, with the numbers phrased the Russian way ("файлов: {}", "пройдено: …") instead of a literal word order.
  • Remove third-party branding: comments, docs, the site and the About window no longer name another IDE, the settings importer keeps only VS Code and Zed as sources, the bundled dark theme is renamed PhpCraft Midnight (old settings.json values migrate through theme::set), the default editor font is Menlo, and the README/site disclaimers become a neutral independent-project line; the bundled phpstorm-stubs package keeps its name only in STUBS-LICENSE, script/update-stubs.sh, the stub loader and the attribute filter that the stub data requires, as Apache-2.0 attribution
  • Feature wave after 0.4.3: PHP import handling (Import Class… adds a use line or qualifies a colliding reference, copy/paste carries the copied code's use statements into the target file, Optimize Imports shares the sorted block insertion), Move Class (F6) resolves the PSR-4 path from composer.json and rewrites references, a new js-analysis crate indexes ES modules, @/ aliases and the <script> blocks of Vue/Svelte components for goto, usages, rename and completion, merge conflicts open in a three-pane window with per-conflict Use Local / Use Remote / Both (remote first) and Apply & Close, the editor reloads clean buffers changed on disk (stamps polled every two seconds while the window is active, the index rebuilt after a burst), restores tabs, split panes, pins and carets from .phpcraft/session.json, zooms its font with ⌘+ / ⌘− / ⇧⌘0 and ⌘+scroll, paints inspection marks on a draggable scrollbar, and the shell is translated into Russian (264 strings in assets/locales/ru.json behind tr(), covering the menu bar, tool windows, Search Everywhere, the Navigate dialog and the editor context menu, with a language picker in Settings ▸ Appearance)

Made with ❤️ in Azerbaijan · https://path.az

v0.4.3-alpha

v0.4.3-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Nov 09:34

What's new in 0.4.3-alpha

  • Update and Restart: the update window downloads the new release and swaps it in without the user downloading anything — macOS replaces PhpCraft.app from the release zip (staged next to it, two renames, the old bundle removed after relaunch), Windows replaces phpcraft.exe from the portable zip when its folder is writable (the running exe is renamed aside and deleted at the next start, which waits for the old process) and otherwise runs the new Setup.exe silently, which now starts PhpCraft again; download progress is shown and a failure leaves the old version in place

Made with ❤️ in Azerbaijan · https://path.az

v0.4.2-alpha

v0.4.2-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Nov 07:50

What's new in 0.4.2-alpha

  • AI chat after signing in to an ACP agent: Sign in… and an authentication error drop the running agent so the next message starts one that reads the new credentials (it used to keep the agent started before the login), and the panel shows Signed in / Switch account… when the agent's credential file (OpenCode auth.json, Codex, Gemini, Claude Code) has a sign-in
  • Test expects the plain canonical path (dunce), as file_path_at now returns on Windows
  • Terminal on Windows: every PowerShell tab starts with an empty history of its own (PSReadLine pointed at a fresh history file with nothing saved back), so Up/Down walk only the commands typed in that tab instead of the machine-wide history
  • Project paths without the Windows verbatim prefix: canonicalizing turned C:\Users\… into \?\C:\Users\…, which PowerShell and cmd don't accept as a working directory, so the terminal opened in the home folder instead of the project; dunce::canonicalize everywhere a path is canonicalized (project root, opened files, git, include paths)
  • Windows that fit small screens: new windows are centered at no more than ~90% of the main display (laptops at 125–150% scaling are ~1100 × 650 logical pixels) with a minimum size, restored windows are shrunk and moved back onto their display so every edge can be grabbed to resize, and modal dialogs are never wider than the window while the dimmed layer under them scrolls when a dialog (New Eloquent Model, Settings, Compare) is taller than the window

Made with ❤️ in Azerbaijan · https://path.az

v0.4.1-alpha

v0.4.1-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Nov 07:31

What's new in 0.4.1-alpha

  • Cargo.lock for 0.4.1-alpha
  • Git status is polled only while the project window is active (and refreshed when it becomes active again) instead of every 3 s forever, and git runs with GIT_OPTIONAL_LOCKS=0 so background status doesn't take the index lock; on Windows each poll's git processes could flash console windows behind the app

Made with ❤️ in Azerbaijan · https://path.az

v0.4.0-alpha

v0.4.0-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Nov 20:28

What's new in 0.4.0-alpha

  • Spell checker for comments and string literals: new spell crate with a bundled English word list (Webster's Second, public domain, plus programming words), inflection, prefix and compound rules, camelCase / snake_case splitting, code-looking chunks and non-English text skipped; misspelt words are weak 'typo' problems, and ⌥↵ offers edit-distance corrections and Save to project dictionary (.phpcraft/dictionary.txt)
  • Git ▸ Pull Requests…: open GitHub pull requests / GitLab merge requests (host from the origin remote) listed on the left, the selected one's description, comments and files on the right; Checkout through gh / glab with the usual save, Local History snapshot and rescan, Show Diff of the fetched head against its merge base with origin/ (all files, or the clicked one), Open in Browser and Add Comment
  • AGENTS.md: the project's goal, crate architecture, app module map, conventions, how to verify and release, what exists, and the state and next steps at this handoff
  • Pull requests backend: gh / glab wrappers — list (GitHub PRs, GitLab MRs), details with comments and files, checkout, comment, fetch the head for diffing (UI not wired yet)
  • HTTP Client: Convert cURL to HTTP Request (from the clipboard), Copy Request as cURL, Import Postman Collection… (v2 / v2.1, folders, variables), Import OpenAPI / Swagger (JSON)… against {{baseUrl}}; every sent request goes to .phpcraft/http/history.http with its response body saved under responses/ (Tools ▸ HTTP Client ▸ History)
  • Git ▸ Worktrees… and Manage Remotes… as lists instead of raw output: worktrees with branch and path (Open in a new window, Remove, New Worktree…), remotes with URL (Remove, Add Remote…)
  • Git ▸ Shelve Changes… (choose files and a name; their changes go to .phpcraft/shelf, new files included, and they return to HEAD) and Git ▸ Shelf… (Unshelve with a 3-way apply, or Delete); Local History snapshot before shelving
  • Git: Interactive Rebase (from the commit selected in the Git Log, or the last 10) — pick / reword with a new message / squash / fixup / drop and reorder, run without an external editor; Cherry-Pick, Revert Commit, Interactively Rebase from Here on a Git Log commit's right-click menu; Undo Last Commit (soft reset); Continue / Skip / Abort for a rebase, cherry-pick, revert or merge stopped on conflicts
  • Git: merge conflicts in the editor — <<<<<<< / ======= / >>>>>>> blocks tinted (yours green, theirs blue), listed as problems (F2), ⌥↵ Accept Yours / Theirs / Both (either order); Git ▸ Resolve Conflicts… lists conflicted files, Mark File as Resolved stages one when no markers are left. Compare with Branch / Revision… and Compare with Clipboard (the selection or the file) in the diff view
  • Laravel intentions (⌥↵): inject the contract instead of a facade (Cache::get() → $this->cache->get() across the class, constructor parameter and import added; 26 facades), validation rules 'a|b|c' → ['a', 'b', 'c'], scopeActive() → #[Scope] protected function active()
  • Laravel code generation: Create DTO (final readonly class in App\Data with fromArray) and Create Nova Resource (App\Nova, model, title, search, fields); Livewire Form was already there
  • Refactor ▸ Extract Blade Component… / Extract View…: the selected markup becomes resources/views/components/.blade.php (variables it uses become @props, replaced by ) or a view replaced by @include('name')
  • Laravel: ⇄ in the gutter of controller methods (and invokable / Livewire classes) that routes dispatch to — read from routes/*.php without artisan (get/post/…, [Controller::class, 'method'], 'Controller@method', resource / apiResource), click opens the route
  • Twig: highlighting ({{ }}, {% %}, {# #} over HTML: tags, strings, numbers, filters, properties), ⌘/ comments with {# #}, ⌘B on template names (extends, include, embed, import, from, use, include() / source()) in templates/ and other usual folders and from {% block x %} to the same block up the extends chain, completion of tags after {%, filters after | and template names in quotes
  • Blade: ⌘B from @yield / @stack to the @section / @Push that fill them and back (the extended layout first); section and stack names complete inside @yield('…') / @section('…') / @stack('…') / @Push('…'); component props from @props([...]) or a class component's constructor — $variables inside the component (plus $attributes, $slot), type="" / :type="" attributes where it is used, ⌘B from an attribute to its prop
  • Cargo.lock: flate2 for the packed PHP stubs
  • PHP's built-in classes and functions from JetBrains phpstorm-stubs (Apache-2.0, crates/php-index/STUBS-LICENSE): 65 common extensions packed into the app (780 KB), unpacked once and indexed with the project, so completion, types, Go to Declaration, Quick Documentation, Parameter Info and argument-count checks know PDO, DateTime, SPL, array_map… (script/update-stubs.sh refreshes them). The indexer now gives each namespace { } block its own namespace and imports; parameter lists drop #[attributes] and parameters only old PHP versions had
  • Run ▸ Run with Coverage: the test at the caret (or all tests) with XDEBUG_MODE=coverage and a Clover report; the output shows line coverage and editors mark covered (green) and uncovered (red) statements in the gutter; Run ▸ Hide Coverage
  • View ▸ TODO: TODO and FIXME comments across the project (vendor/ excluded), listed with a preview
  • Refactor: Introduce Constant (⌘⌥C) — private const of the class, named after a string value; Introduce Field (⌘⌥F) — a property assigned before the statement; Safe Delete (⌘⌦ / Alt+Delete) — removes a declaration with its doc comment only when nothing uses it (otherwise lists the usages); a class alone in its file moves the file to the Trash
  • Navigate ▸ Call Hierarchy (⌃⌥H): every call of the method or function at the caret, labelled with the calling method (Class::method) or function
  • Gutter: ↑ on methods that override or implement an inherited one (click: the parent method), ↓ on methods overridden in subclasses (click: the implementations), ↕ for both
  • Run ▸ PHP Interpreter…: runs, tests and Artisan go through local PHP, a Docker container (docker:[:], environment passed in, Xdebug pointed at host.docker.internal), Sail, or SSH (ssh:[:]). Deployment: Automatic Upload (Tools menu) uploads each saved file to the default server

Made with ❤️ in Azerbaijan · https://path.az

v0.2.0-alpha

v0.2.0-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Nov 18:57

What's new in 0.2.0-alpha

  • Templates with Tab in PHP files: postfix after an expression (.if .notnull .null .isset .empty .foreach — $items → $item — .return .var .echo .dd .dump .throw .not .par) and live templates at the start of a statement (fore, forek, fori, pubf, prof, prif, pubsf, fun, ctor, thr, eco, ife, tryc); Code ▸ Surround With (⌘⌥T): if, if/else, foreach, while, try/catch, function
  • Intentions (⌥↵): Replace quotes, concatenation → interpolation, short / long array syntax, arrow function ↔ closure (with use), Make public / protected / private, ?T ↔ T|null, Invert 'if', Flip binary operator, Import class for a fully-qualified name, Remove unused variable (keeps a call on the right side)
  • Inspections: method / property not found in a class, wrong argument count (functions, methods, static calls), undefined function (PHP's own functions asked from the php binary), undefined variable, unused local variable, unused private method / property, unused import, missing return statement, unreachable code, duplicate array key. They stay quiet where PHP can't be checked (__call / __get, facades, mixins, traits, compact/extract). Underlined by severity, F2 / ⇧F2 jump between problems, ⌥↵ shows the message, Problems (⌘6) for the file and Code ▸ Inspect Code… for the project
  • Refactor: Introduce Variable (⌘⌥V) — the expression becomes a variable assigned before its statement, named after it ( for getUser()); Extract Method (⌘⌥M) — the selected statements move into a private method, read variables become parameters and the one used afterwards is returned; Inline Variable (⌘⌥N). New names are selected at every occurrence to rename in place
  • Navigate: Implementation(s) (⌘⌥B) — subclasses or their versions of the method; Super Method (⌘U) — the overridden/implemented method or the parent class; Test (⌘⇧T) — UserTest for User and back; Type Hierarchy (⌃H) — ancestors and subclasses
  • Quick Documentation (F1 / Ctrl+Q): the declaration's signature and doc comment under the caret; Parameter Info (⌘P / Ctrl+P, also after typing '('): the parameters of the call, the one being typed in bold — functions, methods and constructors (new)
  • Code ▸ Generate (⌘N / Alt+Insert in PHP files): Constructor, Getters, Setters, Getters and Setters (isX() for bools, fluent setters), Implement Methods (abstract and interface methods), Override Methods… (calls parent::), PHPDoc Comment, and Laravel Code Generation… for the existing generators
  • Refactor ▸ Rename (⇧F6) for classes, methods, properties, constants, functions and variables: every usage changes (open editors as one undo step, other files on disk, Local History snapshot first); a class in a file named after it renames the file. New Refactor menu
  • Find Usages (⌥F7, also ⌘B on a declaration): every reference to the class, method, property, constant, function or local variable at the caret — names that resolve to the same declaration — listed with a preview; Highlight Usages in File (⌘⇧F7, Esc clears)

Made with ❤️ in Azerbaijan · https://path.az

v0.1.0-alpha

v0.1.0-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Nov 18:24

What's new in 0.1.0-alpha

  • Bookmarks: Toggle Bookmark (F3 / F11), with a mnemonic 0-9 / A-Z (⌥F3 / Ctrl+F11), Next / Previous, Show Bookmarks (⌘F3 / Shift+F11), ⌃0-9 jumps to a mnemonic; marks in the gutter, they follow edits and persist. Window menu: Reopen Closed Tab, Pin Tab (pinned tabs stay first and survive Close Others / Close All), Close Tabs to the Left / Right, Close Unmodified, Close All but Pinned, Next Splitter. Indent guides, View ▸ Show Whitespaces. File ▸ Clone Repository opens the clone dialog; PhpStorm keymap import maps SaveAll to Save All; F3 on macOS is Toggle Bookmark (find next stays ⌘G)
  • Editor: code folding — regions from the syntax tree (blocks, arrays, argument lists, doc comments, HTML elements, // region … // endregion; bracket pairs for other languages), ▾/▸ arrows in the gutter, click the ⋯ placeholder to expand, Code ▸ Expand / Collapse (⌘= / ⌘-), Expand All / Collapse All (⌘⇧= / ⌘⇧-), Fold Selection (⌘.); collapsed regions follow edits and are remembered per file, Up/Down skip them. Extend / Shrink Selection (⌥↑ / ⌥↓, Ctrl+W / Ctrl+Shift+W) through the syntax tree. View ▸ Soft-Wrap (on by default for Markdown, text and log files). The editor now draws visual rows, which both build on
  • Editor: smart brackets and quotes (auto-close, wrap the selection, type over the closing one, Backspace removes an empty pair, Enter between {} opens a block), matching brace highlight and Navigate ▸ Matching Brace (⌘⇧M), Join Lines (⌃⇧J), Sort / Reverse Lines, Toggle Case (⌘⇧U), Tab / ⇧Tab indent and unindent selected lines, Paste from History (⌘⇧V, last 20 copies); indentation follows .editorconfig (tabs or N spaces)
  • Editor: multiple carets — Add Selection for Next Occurrence (⌃G / Alt+J), Unselect (⌃⇧G), Select All Occurrences (⌃⌘G), Add Carets to Line Ends (⌥⇧G), Clone Caret Above/Below (⌃⇧↑/↓), ⌥⇧-click adds a caret, ⌥-drag selects a column, Esc back to one caret. Typing, Backspace/Delete, Enter, Tab and movement act on every caret as one undo step; copy joins selections, paste spreads one line per caret
  • macOS/Linux: take PATH from an interactive login shell so tools installers add to ~/.zshrc (opencode, bun, Herd, ~/.local/bin) are found — OpenCode's Sign in no longer fails with 'opencode: command not found'; known install folders are added as a fallback
  • Faster project and file opening, especially on Windows: git, php, gh, sftp and dump tools run without a console window (new process crate, CREATE_NO_WINDOW), the repository is found by looking for .git instead of running git on the UI thread, and the HEAD version for gutter markers / blame loads in the background
  • Site: download buttons open the GitHub release page instead of linking straight to an installer

Made with ❤️ in Azerbaijan · https://path.az